From cfdfb51cb41e6857ddc0e09d93518883587eb6aa Mon Sep 17 00:00:00 2001 From: Felix Kleinert <f.kleinert@fz-juelich.de> Date: Tue, 24 Mar 2020 09:15:06 +0100 Subject: [PATCH] if statement for runner removed --- test/test_helpers.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test_helpers.py b/test/test_helpers.py index 86e7124d..5e4246cb 100644 --- a/test/test_helpers.py +++ b/test/test_helpers.py @@ -154,14 +154,14 @@ class TestPrepareHost: with pytest.raises(OSError) as e: prepare_host() assert "unknown host 'NotExistingHostName'" in e.value.args[0] - if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node(): - mock_host.return_value = "linux-aa9b" - with pytest.raises(NotADirectoryError) as e: - prepare_host() - assert "does not exist for host 'linux-aa9b'" in e.value.args[0] - with pytest.raises(NotADirectoryError) as e: - prepare_host(False) - assert "does not exist for host 'linux-aa9b'" in e.value.args[0] + # if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node(): + mock_host.return_value = "linux-aa9b" + with pytest.raises(NotADirectoryError) as e: + prepare_host() + assert "does not exist for host 'linux-aa9b'" in e.value.args[0] + with pytest.raises(NotADirectoryError) as e: + prepare_host(False) + assert "does not exist for host 'linux-aa9b'" in e.value.args[0] @mock.patch("socket.gethostname", side_effect=["linux-aa9b", "ZAM144", "zam347", "jrtest", "jwtest", "runner-6HmDp9Qd-project-2411-concurrent"]) -- GitLab