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

Method test_empty_hosts_raises

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

Source from the content-addressed store, hash-verified

179 load_auth_config(cfg)
180
181 def test_empty_hosts_raises(self, tmp_path):
182 cfg = tmp_path / "auth.json"
183 cfg.write_text(json.dumps({
184 "providers": [{"hosts": [], "provider": "github", "auth": "bearer", "token_env": "X"}]
185 }))
186 with pytest.raises(ValueError, match="non-empty"):
187 load_auth_config(cfg)
188
189 def test_missing_provider_key_raises(self, tmp_path):
190 cfg = tmp_path / "auth.json"

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected