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

Method test_project_level_config

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

Source from the content-addressed store, hash-verified

4346 assert entries[0].url == "https://example.com/catalog.json"
4347
4348 def test_project_level_config(self, project_dir):
4349 from specify_cli.workflows.catalog import WorkflowCatalog
4350
4351 config_path = project_dir / ".specify" / "workflow-catalogs.yml"
4352 config_path.write_text(yaml.dump({
4353 "catalogs": [{
4354 "name": "custom",
4355 "url": "https://example.com/wf-catalog.json",
4356 "priority": 1,
4357 "install_allowed": True,
4358 }]
4359 }))
4360
4361 catalog = WorkflowCatalog(project_dir)
4362 entries = catalog.get_active_catalogs()
4363 assert len(entries) == 1
4364 assert entries[0].name == "custom"
4365
4366 def test_validate_url_http_rejected(self, project_dir):
4367 from specify_cli.workflows.catalog import WorkflowCatalog, WorkflowValidationError

Callers

nothing calls this directly

Calls 2

get_active_catalogsMethod · 0.95
WorkflowCatalogClass · 0.90

Tested by

no test coverage detected