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

Method test_env_var_override

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

Source from the content-addressed store, hash-verified

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
4786
4787 monkeypatch.setenv("SPECKIT_STEP_CATALOG_URL", "https://example.com/step-catalog.json")
4788 catalog = StepCatalog(project_dir)
4789 entries = catalog.get_active_catalogs()
4790 assert len(entries) == 1
4791 assert entries[0].name == "env-override"
4792 assert entries[0].url == "https://example.com/step-catalog.json"
4793
4794 def test_project_level_config(self, project_dir):
4795 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