Skip to content

Commit bb2e433

Browse files
committed
fix test_environment_variables_override test
1 parent b98ac7e commit bb2e433

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/components/test_components_utils.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ def test_environment_variables_override(self):
7070

7171
try:
7272
with mock.patch.dict(os.environ, mock_env):
73-
importlib.reload(nf_core.components.components_utils)
74-
assert nf_core.components.components_utils.NF_CORE_MODULES_NAME == mock_env["NF_CORE_MODULES_NAME"]
75-
assert nf_core.components.components_utils.NF_CORE_MODULES_REMOTE == mock_env["NF_CORE_MODULES_REMOTE"]
73+
importlib.reload(nf_core.components.constants)
74+
assert nf_core.components.constants.NF_CORE_MODULES_NAME == mock_env["NF_CORE_MODULES_NAME"]
75+
assert nf_core.components.constants.NF_CORE_MODULES_REMOTE == mock_env["NF_CORE_MODULES_REMOTE"]
7676
assert (
77-
nf_core.components.components_utils.NF_CORE_MODULES_DEFAULT_BRANCH
77+
nf_core.components.constants.NF_CORE_MODULES_DEFAULT_BRANCH
7878
== mock_env["NF_CORE_MODULES_DEFAULT_BRANCH"]
7979
)
8080
finally:
81-
importlib.reload(nf_core.components.components_utils)
81+
importlib.reload(nf_core.components.constants)

0 commit comments

Comments
 (0)