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

Method test_list_installed

tests/test_presets.py:676–686  ·  view source on GitHub ↗

Test listing installed packs.

(self, project_dir, pack_dir)

Source from the content-addressed store, hash-verified

674 assert result is False
675
676 def test_list_installed(self, project_dir, pack_dir):
677 """Test listing installed packs."""
678 manager = PresetManager(project_dir)
679 manager.install_from_directory(pack_dir, "0.1.5")
680
681 installed = manager.list_installed()
682 assert len(installed) == 1
683 assert installed[0]["id"] == "test-pack"
684 assert installed[0]["name"] == "Test Preset"
685 assert installed[0]["version"] == "1.0.0"
686 assert installed[0]["template_count"] == 1
687
688 def test_list_installed_empty(self, project_dir):
689 """Test listing when no packs installed."""

Callers

nothing calls this directly

Calls 3

list_installedMethod · 0.95
PresetManagerClass · 0.90

Tested by

no test coverage detected