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

Method test_check_compatibility_invalid

tests/test_presets.py:722–728  ·  view source on GitHub ↗

Test compatibility check with invalid specifier.

(self, pack_dir, temp_dir)

Source from the content-addressed store, hash-verified

720 manager.check_compatibility(manifest, "0.1.0.dev0")
721
722 def test_check_compatibility_invalid(self, pack_dir, temp_dir):
723 """Test compatibility check with invalid specifier."""
724 manager = PresetManager(temp_dir)
725 manifest = PresetManifest(pack_dir / "preset.yml")
726 manifest.data["requires"]["speckit_version"] = "not-a-specifier"
727 with pytest.raises(PresetCompatibilityError, match="Invalid version specifier"):
728 manager.check_compatibility(manifest, "0.1.5")
729
730 def test_install_with_priority(self, project_dir, pack_dir):
731 """Test installing a pack with custom priority."""

Callers

nothing calls this directly

Calls 3

check_compatibilityMethod · 0.95
PresetManagerClass · 0.90
PresetManifestClass · 0.90

Tested by

no test coverage detected