Skip to content

Commit

Permalink
Prevent a couple of unit tests from installing into ~/cylc-run
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Aug 22, 2024
1 parent ecf7879 commit 83b7db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def test_validate_source_dir(tmp_run_dir: Callable, tmp_src_dir: Callable):
assert "exists in source directory" in str(exc_info.value)


def test_install_workflow_failif_name_name(tmp_src_dir):
def test_install_workflow_failif_name_name(tmp_src_dir, tmp_run_dir):
"""If a run_name is given validate_workflow_name is called on
the workflow and the run name in combination.
"""
Expand All @@ -558,7 +558,7 @@ def test_install_workflow_failif_name_name(tmp_src_dir):
install_workflow(src_dir, workflow_name='foo', run_name='bar?')


def test_install_workflow_failif_reserved_name(tmp_src_dir):
def test_install_workflow_failif_reserved_name(tmp_src_dir, tmp_run_dir):
"""Reserved names cause install validation failure.
n.b. manually defined to avoid test dependency on workflow_files.
Expand Down

0 comments on commit 83b7db9

Please sign in to comment.