MCPcopy Create free account
hub / github.com/github/spec-kit / test_default_catalogs

Method test_default_catalogs

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

Source from the content-addressed store, hash-verified

4325 """Test WorkflowCatalog catalog resolution."""
4326
4327 def test_default_catalogs(self, project_dir, monkeypatch):
4328 from specify_cli.workflows.catalog import WorkflowCatalog
4329
4330 monkeypatch.setattr(Path, "home", lambda: project_dir)
4331 monkeypatch.delenv("SPECKIT_WORKFLOW_CATALOG_URL", raising=False)
4332 catalog = WorkflowCatalog(project_dir)
4333 entries = catalog.get_active_catalogs()
4334 assert len(entries) == 2
4335 assert entries[0].name == "default"
4336 assert entries[1].name == "community"
4337
4338 def test_env_var_override(self, project_dir, monkeypatch):
4339 from specify_cli.workflows.catalog import WorkflowCatalog

Callers

nothing calls this directly

Calls 2

get_active_catalogsMethod · 0.95
WorkflowCatalogClass · 0.90

Tested by

no test coverage detected