MCPcopy Index your code
hub / github.com/github/spec-kit / test_inline_token

Method test_inline_token

tests/test_authentication.py:109–120  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

107 assert entries[0].auth == "basic-pat"
108
109 def test_inline_token(self, tmp_path):
110 cfg = tmp_path / "auth.json"
111 cfg.write_text(json.dumps({
112 "providers": [{
113 "hosts": ["github.com"],
114 "provider": "github",
115 "auth": "bearer",
116 "token": "ghp_inline_token",
117 }]
118 }))
119 entries = load_auth_config(cfg)
120 assert entries[0].token == "ghp_inline_token"
121
122 def test_azure_ad_config(self, tmp_path):
123 cfg = tmp_path / "auth.json"

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected