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

Method test_resolve_nonexistent

tests/test_presets.py:823–827  ·  view source on GitHub ↗

Test resolving a nonexistent template returns None.

(self, project_dir)

Source from the content-addressed store, hash-verified

821 assert "Core Spec Template" in result.read_text()
822
823 def test_resolve_nonexistent(self, project_dir):
824 """Test resolving a nonexistent template returns None."""
825 resolver = PresetResolver(project_dir)
826 result = resolver.resolve("nonexistent-template")
827 assert result is None
828
829 def test_resolve_higher_priority_pack_wins(self, project_dir, temp_dir, valid_pack_data):
830 """Test that a pack with lower priority number wins over higher number."""

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.95
PresetResolverClass · 0.90

Tested by

no test coverage detected