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

Method test_install_already_installed

tests/test_presets.py:597–603  ·  view source on GitHub ↗

Test installing an already-installed pack raises error.

(self, project_dir, pack_dir)

Source from the content-addressed store, hash-verified

595 assert (installed_dir / "templates" / "spec-template.md").exists()
596
597 def test_install_already_installed(self, project_dir, pack_dir):
598 """Test installing an already-installed pack raises error."""
599 manager = PresetManager(project_dir)
600 manager.install_from_directory(pack_dir, "0.1.5")
601
602 with pytest.raises(PresetError, match="already installed"):
603 manager.install_from_directory(pack_dir, "0.1.5")
604
605 def test_install_incompatible(self, project_dir, temp_dir, valid_pack_data):
606 """Test installing an incompatible pack raises error."""

Callers

nothing calls this directly

Calls 2

PresetManagerClass · 0.90

Tested by

no test coverage detected