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

problems with mocking

parent 7ff8127c
Branches
Tags
3 merge requests!17update to v0.4.0,!15new feat split subsets,!13fix bug make tests running
Pipeline #26157 passed
......@@ -5,6 +5,7 @@ import os
import keras
import numpy as np
import mock
import platform
class TestToList:
......@@ -168,7 +169,7 @@ 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 socket.gethostname():
if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node():
mock_host.return_value = "linux-gzsx"
with pytest.raises(NotADirectoryError) as e:
prepare_host()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment