From 838a552f10983bfab204c9724d84b08f92a21a30 Mon Sep 17 00:00:00 2001 From: Hans Fangohr <hans.fangohr@mpsd.mpg.de> Date: Thu, 6 Jul 2023 09:16:50 +0200 Subject: [PATCH] pretend a root_dir is defined for this test --- tests/test_mpsd_software.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_mpsd_software.py b/tests/test_mpsd_software.py index 22f0ed3..287ba6c 100644 --- a/tests/test_mpsd_software.py +++ b/tests/test_mpsd_software.py @@ -575,6 +575,11 @@ def test_get_available_releases(): def test_argument_line_parsing(mocker): """Check to find error in argparse logic""" + # pretend we have a rootdir defined + mock = mocker.patch( + "mpsd_software_manager.mpsd_software.get_root_dir", return_value=Path(".") + ) + ### available sys.argv = ["mpsd-software-tests", "available"] mock = mocker.patch( -- GitLab