Skip to content

Commit a7201c1

Browse files
authored
fix(workflows): require project for catalog list (#2436)
1 parent 1994bd7 commit a7201c1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/specify_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5806,7 +5806,7 @@ def workflow_catalog_list():
58065806
"""List configured workflow catalog sources."""
58075807
from .workflows.catalog import WorkflowCatalog, WorkflowCatalogError
58085808

5809-
project_root = Path.cwd()
5809+
project_root = _require_specify_project()
58105810
catalog = WorkflowCatalog(project_root)
58115811

58125812
try:

tests/integrations/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ def test_project_scoped_commands_require_specify_directory(self, tmp_path):
11171117
["workflow", "remove", "demo"],
11181118
["workflow", "search"],
11191119
["workflow", "info", "demo"],
1120+
["workflow", "catalog", "list"],
11201121
["workflow", "catalog", "add", "https://example.com/catalog.yml"],
11211122
["workflow", "catalog", "remove", "0"],
11221123
]

0 commit comments

Comments
 (0)