diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.py index ccd670d20e..176eecc2d4 100644 --- a/src/specify_cli/__init__.py +++ b/src/specify_cli/__init__.py @@ -5806,7 +5806,7 @@ def workflow_catalog_list(): """List configured workflow catalog sources.""" from .workflows.catalog import WorkflowCatalog, WorkflowCatalogError - project_root = Path.cwd() + project_root = _require_specify_project() catalog = WorkflowCatalog(project_root) try: diff --git a/tests/integrations/test_cli.py b/tests/integrations/test_cli.py index 7732d57300..b94f9cc9fd 100644 --- a/tests/integrations/test_cli.py +++ b/tests/integrations/test_cli.py @@ -1117,6 +1117,7 @@ def test_project_scoped_commands_require_specify_directory(self, tmp_path): ["workflow", "remove", "demo"], ["workflow", "search"], ["workflow", "info", "demo"], + ["workflow", "catalog", "list"], ["workflow", "catalog", "add", "https://example.com/catalog.yml"], ["workflow", "catalog", "remove", "0"], ]