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

Method test_azure_cli_config

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

Source from the content-addressed store, hash-verified

136 assert entries[0].tenant_id == "tid"
137
138 def test_azure_cli_config(self, tmp_path):
139 cfg = tmp_path / "auth.json"
140 cfg.write_text(json.dumps({
141 "providers": [{
142 "hosts": ["dev.azure.com"],
143 "provider": "azure-devops",
144 "auth": "azure-cli",
145 }]
146 }))
147 entries = load_auth_config(cfg)
148 assert entries[0].auth == "azure-cli"
149
150 def test_multiple_entries(self, tmp_path):
151 cfg = tmp_path / "auth.json"

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected