💫 Toolkit to help you get started with SDD or any other process!
fix(workflows): require project for catalog list (#2436)
Pascal THUETa7201c183e9c
diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.pyindex ccd670d20..176eecc2d 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.pyindex 7732d5730..b94f9cc9f 100644--- a/tests/integrations/test_cli.py+++ b/tests/integrations/test_cli.py@@ -1117,6 +1117,7 @@ class TestIntegrationCatalogDiscoveryCLI:["workflow", "remove", "demo"],["workflow", "search"],["workflow", "info", "demo"],+ ["workflow", "catalog", "list"],["workflow", "catalog", "add", "https://example.com/catalog.yml"],["workflow", "catalog", "remove", "0"],]