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

Method test_azure_ad_config

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

Source from the content-addressed store, hash-verified

120 assert entries[0].token == "ghp_inline_token"
121
122 def test_azure_ad_config(self, tmp_path):
123 cfg = tmp_path / "auth.json"
124 cfg.write_text(json.dumps({
125 "providers": [{
126 "hosts": ["dev.azure.com"],
127 "provider": "azure-devops",
128 "auth": "azure-ad",
129 "tenant_id": "tid",
130 "client_id": "cid",
131 "client_secret_env": "SECRET",
132 }]
133 }))
134 entries = load_auth_config(cfg)
135 assert entries[0].auth == "azure-ad"
136 assert entries[0].tenant_id == "tid"
137
138 def test_azure_cli_config(self, tmp_path):
139 cfg = tmp_path / "auth.json"

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected