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

Method test_remove_catalog

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

Source from the content-addressed store, hash-verified

4860 catalog.add_catalog("https://example.com/steps.json")
4861
4862 def test_remove_catalog(self, project_dir):
4863 from specify_cli.workflows.catalog import StepCatalog
4864
4865 catalog = StepCatalog(project_dir)
4866 catalog.add_catalog("https://example.com/s1.json", "first")
4867 catalog.add_catalog("https://example.com/s2.json", "second")
4868
4869 removed = catalog.remove_catalog(0)
4870 assert removed == "first"
4871
4872 config_path = project_dir / ".specify" / "step-catalogs.yml"
4873 data = yaml.safe_load(config_path.read_text())
4874 assert len(data["catalogs"]) == 1
4875
4876 def test_remove_catalog_invalid_index(self, project_dir):
4877 from specify_cli.workflows.catalog import StepCatalog, StepValidationError

Callers

nothing calls this directly

Calls 4

add_catalogMethod · 0.95
remove_catalogMethod · 0.95
StepCatalogClass · 0.90
read_textMethod · 0.80

Tested by

no test coverage detected