From 2e1c48a3013e5e4f5b2d5bb0d58a3a70cc5dedb5 Mon Sep 17 00:00:00 2001 From: lukas leufen <l.leufen@fz-juelich.de> Date: Thu, 18 Jun 2020 16:29:48 +0200 Subject: [PATCH] fix failing test --- test/test_configuration/test_path_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_configuration/test_path_config.py b/test/test_configuration/test_path_config.py index c14d93bb..27b2d32d 100644 --- a/test/test_configuration/test_path_config.py +++ b/test/test_configuration/test_path_config.py @@ -31,7 +31,8 @@ class TestPrepareHost: @mock.patch("getpass.getuser", return_value="zombie21") @mock.patch("src.configuration.check_path_and_create", side_effect=PermissionError) - def test_error_handling(self, mock_cpath, mock_user): + @mock.patch("os.path.exists", return_value=False) + def test_error_handling(self, mock_path_exists, mock_cpath, mock_user): # if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node(): # mock_host.return_value = "linux-aa9b" with pytest.raises(NotADirectoryError) as e: -- GitLab