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

Method test_invalid_json_raises

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

Source from the content-addressed store, hash-verified

161 # -- Negative: validation errors --
162
163 def test_invalid_json_raises(self, tmp_path):
164 cfg = tmp_path / "auth.json"
165 cfg.write_text("not json")
166 with pytest.raises(json.JSONDecodeError):
167 load_auth_config(cfg)
168
169 def test_not_object_raises(self, tmp_path):
170 cfg = tmp_path / "auth.json"

Callers

nothing calls this directly

Calls 1

load_auth_configFunction · 0.90

Tested by

no test coverage detected