From 1b8b05e1dadfadce3690b9c046c8579609dcb4cc Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Fri, 23 Jun 2023 13:56:40 +0100 Subject: [PATCH] Prevent tests creating symlinks on installation. --- tests/functional/test_rose_stem.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/test_rose_stem.py b/tests/functional/test_rose_stem.py index 330ab725..022c2569 100644 --- a/tests/functional/test_rose_stem.py +++ b/tests/functional/test_rose_stem.py @@ -177,6 +177,12 @@ def setup_stem_repo(tmp_path_factory, monkeymodule, request): dest = str(workingcopy / 'rose-stem') shutil.copy2(src, dest) suite_install_dir = get_workflow_run_dir(suitename) + + monkeymodule.setattr( + 'cylc.flow.pathutil.make_symlink_dir', + lambda *_, **__: {} + ) + yield { 'basetemp': basetemp, 'workingcopy': workingcopy,