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

Method test_valid_ado_config

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

Source from the content-addressed store, hash-verified

92 assert entries[0].token_env == "GH_TOKEN"
93
94 def test_valid_ado_config(self, tmp_path):
95 cfg = tmp_path / "auth.json"
96 cfg.write_text(json.dumps({
97 "providers": [{
98 "hosts": ["dev.azure.com"],
99 "provider": "azure-devops",
100 "auth": "basic-pat",
101 "token_env": "AZURE_DEVOPS_PAT",
102 }]
103 }))
104 entries = load_auth_config(cfg)
105 assert len(entries) == 1
106 assert entries[0].provider == "azure-devops"
107 assert entries[0].auth == "basic-pat"
108
109 def test_inline_token(self, tmp_path):
110 cfg = tmp_path / "auth.json"

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected