(self, project_dir)
| 4792 | assert entries[0].url == "https://example.com/step-catalog.json" |
| 4793 | |
| 4794 | def test_project_level_config(self, project_dir): |
| 4795 | from specify_cli.workflows.catalog import StepCatalog |
| 4796 | |
| 4797 | config_path = project_dir / ".specify" / "step-catalogs.yml" |
| 4798 | config_path.write_text(yaml.dump({ |
| 4799 | "catalogs": [{ |
| 4800 | "name": "custom", |
| 4801 | "url": "https://example.com/step-catalog.json", |
| 4802 | "priority": 1, |
| 4803 | "install_allowed": True, |
| 4804 | }] |
| 4805 | })) |
| 4806 | |
| 4807 | catalog = StepCatalog(project_dir) |
| 4808 | entries = catalog.get_active_catalogs() |
| 4809 | assert len(entries) == 1 |
| 4810 | assert entries[0].name == "custom" |
| 4811 | |
| 4812 | def test_validate_url_http_rejected(self, project_dir): |
| 4813 | from specify_cli.workflows.catalog import StepCatalog, StepValidationError |
nothing calls this directly
no test coverage detected