(self, project_dir)
| 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 |
nothing calls this directly
no test coverage detected