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

Method test_remove_nonexistent

tests/test_presets.py:358–363  ·  view source on GitHub ↗

Test removing a pack that doesn't exist.

(self, temp_dir)

Source from the content-addressed store, hash-verified

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."""
360 packs_dir = temp_dir / "packs"
361 packs_dir.mkdir()
362 registry = PresetRegistry(packs_dir)
363 registry.remove("nonexistent") # Should not raise
364
365 def test_list(self, temp_dir):
366 """Test listing all packs."""

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
PresetRegistryClass · 0.90

Tested by

no test coverage detected