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

Method test_default_stack

tests/test_extensions.py:4078–4093  ·  view source on GitHub ↗

Default stack includes default and community catalogs.

(self, temp_dir)

Source from the content-addressed store, hash-verified

4076 # --- get_active_catalogs ---
4077
4078 def test_default_stack(self, temp_dir):
4079 """Default stack includes default and community catalogs."""
4080 project_dir = self._make_project(temp_dir)
4081 catalog = ExtensionCatalog(project_dir)
4082
4083 entries = catalog.get_active_catalogs()
4084
4085 assert len(entries) == 2
4086 assert entries[0].url == ExtensionCatalog.DEFAULT_CATALOG_URL
4087 assert entries[0].name == "default"
4088 assert entries[0].priority == 1
4089 assert entries[0].install_allowed is True
4090 assert entries[1].url == ExtensionCatalog.COMMUNITY_CATALOG_URL
4091 assert entries[1].name == "community"
4092 assert entries[1].priority == 2
4093 assert entries[1].install_allowed is False
4094
4095 def test_env_var_overrides_default_stack(self, temp_dir, monkeypatch):
4096 """SPECKIT_CATALOG_URL replaces the entire default stack."""

Callers

nothing calls this directly

Calls 3

_make_projectMethod · 0.95
get_active_catalogsMethod · 0.95
ExtensionCatalogClass · 0.90

Tested by

no test coverage detected