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

Method test_default_catalogs

tests/test_workflows.py:4773–4782  ·  view source on GitHub ↗
(self, project_dir, monkeypatch)

Source from the content-addressed store, hash-verified

4771 """Test StepCatalog catalog resolution."""
4772
4773 def test_default_catalogs(self, project_dir, monkeypatch):
4774 from specify_cli.workflows.catalog import StepCatalog
4775
4776 monkeypatch.setattr(Path, "home", lambda: project_dir)
4777 monkeypatch.delenv("SPECKIT_STEP_CATALOG_URL", raising=False)
4778 catalog = StepCatalog(project_dir)
4779 entries = catalog.get_active_catalogs()
4780 assert len(entries) == 2
4781 assert entries[0].name == "default"
4782 assert entries[1].name == "community"
4783
4784 def test_env_var_override(self, project_dir, monkeypatch):
4785 from specify_cli.workflows.catalog import StepCatalog

Callers

nothing calls this directly

Calls 2

get_active_catalogsMethod · 0.95
StepCatalogClass · 0.90

Tested by

no test coverage detected