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

Method test_project_level_config

tests/test_workflows.py:4794–4810  ·  view source on GitHub ↗
(self, project_dir)

Source from the content-addressed store, hash-verified

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
4796
4797 config_path = project_dir / ".specify" / "step-catalogs.yml"
4798 config_path.write_text(yaml.dump({
4799 "catalogs": [{
4800 "name": "custom",
4801 "url": "https://example.com/step-catalog.json",
4802 "priority": 1,
4803 "install_allowed": True,
4804 }]
4805 }))
4806
4807 catalog = StepCatalog(project_dir)
4808 entries = catalog.get_active_catalogs()
4809 assert len(entries) == 1
4810 assert entries[0].name == "custom"
4811
4812 def test_validate_url_http_rejected(self, project_dir):
4813 from specify_cli.workflows.catalog import StepCatalog, StepValidationError

Callers

nothing calls this directly

Calls 2

get_active_catalogsMethod · 0.95
StepCatalogClass · 0.90

Tested by

no test coverage detected