diff --git a/test/test_configuration/test_path_config.py b/test/test_configuration/test_path_config.py index c14d93bb297c27e1ce1d7a782dc28400e545f8f9..27b2d32db7180275fc5256636f150b53bd3d189b 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: