MCPcopy
hub / github.com/github/spec-kit / test_get_nonexistent

Method test_get_nonexistent

tests/test_presets.py:403–408  ·  view source on GitHub ↗

Test getting a nonexistent pack.

(self, temp_dir)

Source from the content-addressed store, hash-verified

401 assert registry.list() == {}
402
403 def test_get_nonexistent(self, temp_dir):
404 """Test getting a nonexistent pack."""
405 packs_dir = temp_dir / "packs"
406 packs_dir.mkdir()
407 registry = PresetRegistry(packs_dir)
408 assert registry.get("nonexistent") is None
409
410 def test_restore(self, temp_dir):
411 """Test restore() preserves timestamps exactly."""

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
PresetRegistryClass · 0.90

Tested by

no test coverage detected