(self, project_dir)
| 4378 | catalog._validate_catalog_url("http://localhost:8080/catalog.json") |
| 4379 | |
| 4380 | def test_add_catalog(self, project_dir): |
| 4381 | from specify_cli.workflows.catalog import WorkflowCatalog |
| 4382 | |
| 4383 | catalog = WorkflowCatalog(project_dir) |
| 4384 | catalog.add_catalog("https://example.com/new-catalog.json", "my-catalog") |
| 4385 | |
| 4386 | config_path = project_dir / ".specify" / "workflow-catalogs.yml" |
| 4387 | assert config_path.exists() |
| 4388 | data = yaml.safe_load(config_path.read_text()) |
| 4389 | assert len(data["catalogs"]) == 1 |
| 4390 | assert data["catalogs"][0]["url"] == "https://example.com/new-catalog.json" |
| 4391 | |
| 4392 | def test_add_catalog_duplicate_rejected(self, project_dir): |
| 4393 | from specify_cli.workflows.catalog import WorkflowCatalog, WorkflowValidationError |
nothing calls this directly
no test coverage detected