Skip to content
Snippets Groups Projects
Commit 2e1c48a3 authored by lukas leufen's avatar lukas leufen
Browse files

fix failing test

parent ba7c850e
Branches
Tags
2 merge requests!125Release v0.10.0,!124Update Master to new version v0.10.0
Pipeline #39257 canceled
...@@ -31,7 +31,8 @@ class TestPrepareHost: ...@@ -31,7 +31,8 @@ class TestPrepareHost:
@mock.patch("getpass.getuser", return_value="zombie21") @mock.patch("getpass.getuser", return_value="zombie21")
@mock.patch("src.configuration.check_path_and_create", side_effect=PermissionError) @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(): # if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node():
# mock_host.return_value = "linux-aa9b" # mock_host.return_value = "linux-aa9b"
with pytest.raises(NotADirectoryError) as e: with pytest.raises(NotADirectoryError) as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment