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