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

Method test_multiple_entries

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

Source from the content-addressed store, hash-verified

148 assert entries[0].auth == "azure-cli"
149
150 def test_multiple_entries(self, tmp_path):
151 cfg = tmp_path / "auth.json"
152 cfg.write_text(json.dumps({
153 "providers": [
154 {"hosts": ["github.com"], "provider": "github", "auth": "bearer", "token_env": "GH_TOKEN"},
155 {"hosts": ["dev.azure.com"], "provider": "azure-devops", "auth": "basic-pat", "token_env": "ADO_PAT"},
156 ]
157 }))
158 entries = load_auth_config(cfg)
159 assert len(entries) == 2
160
161 # -- Negative: validation errors --
162

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected