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

Method test_remove

tests/test_presets.py:657–668  ·  view source on GitHub ↗

Test removing a preset.

(self, project_dir, pack_dir)

Source from the content-addressed store, hash-verified

655 manager.install_from_zip(zip_path, "0.1.5")
656
657 def test_remove(self, project_dir, pack_dir):
658 """Test removing a preset."""
659 manager = PresetManager(project_dir)
660 manager.install_from_directory(pack_dir, "0.1.5")
661 assert manager.registry.is_installed("test-pack")
662
663 result = manager.remove("test-pack")
664 assert result is True
665 assert not manager.registry.is_installed("test-pack")
666
667 installed_dir = project_dir / ".specify" / "presets" / "test-pack"
668 assert not installed_dir.exists()
669
670 def test_remove_nonexistent(self, project_dir):
671 """Test removing a pack that doesn't exist."""

Callers

nothing calls this directly

Calls 4

removeMethod · 0.95
PresetManagerClass · 0.90
is_installedMethod · 0.45

Tested by

no test coverage detected