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

Method test_remove

tests/test_presets.py:346–356  ·  view source on GitHub ↗

Test removing a pack.

(self, temp_dir)

Source from the content-addressed store, hash-verified

344 assert "installed_at" in metadata
345
346 def test_remove(self, temp_dir):
347 """Test removing a pack."""
348 packs_dir = temp_dir / "packs"
349 packs_dir.mkdir()
350 registry = PresetRegistry(packs_dir)
351
352 registry.add("test-pack", {"version": "1.0.0"})
353 assert registry.is_installed("test-pack")
354
355 registry.remove("test-pack")
356 assert not registry.is_installed("test-pack")
357
358 def test_remove_nonexistent(self, temp_dir):
359 """Test removing a pack that doesn't exist."""

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
is_installedMethod · 0.95
removeMethod · 0.95
PresetRegistryClass · 0.90

Tested by

no test coverage detected