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

Method test_get_pack

tests/test_presets.py:693–700  ·  view source on GitHub ↗

Test getting a specific installed pack.

(self, project_dir, pack_dir)

Source from the content-addressed store, hash-verified

691 assert manager.list_installed() == []
692
693 def test_get_pack(self, project_dir, pack_dir):
694 """Test getting a specific installed pack."""
695 manager = PresetManager(project_dir)
696 manager.install_from_directory(pack_dir, "0.1.5")
697
698 pack = manager.get_pack("test-pack")
699 assert pack is not None
700 assert pack.id == "test-pack"
701
702 def test_get_pack_not_installed(self, project_dir):
703 """Test getting a non-installed pack returns None."""

Callers

nothing calls this directly

Calls 3

get_packMethod · 0.95
PresetManagerClass · 0.90

Tested by

no test coverage detected