Skip to content
Snippets Groups Projects
Commit 062bb997 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

update preare env with test

parent 631e2eea
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!1Resolve "First draft for user interface for top level install command"
...@@ -60,6 +60,12 @@ def test_prepare_environment(tmp_path): ...@@ -60,6 +60,12 @@ def test_prepare_environment(tmp_path):
assert "global" in result assert "global" in result
assert "foss2021a-mpi" in result assert "foss2021a-mpi" in result
# Expect an Exception when wrong mpsd_release is provided
with pytest.raises(Exception):
result = mod.prepare_environment(
mpsd_release="wrong-mpsd-release", script_dir=(script_dir)
)
def test_setup_log_cmd(tmp_path): def test_setup_log_cmd(tmp_path):
# check that logs/install-software-environment.log is updated when the module is run # check that logs/install-software-environment.log is updated when the module is run
...@@ -90,7 +96,7 @@ def test_install_environment(tmp_path): ...@@ -90,7 +96,7 @@ def test_install_environment(tmp_path):
toolchains=["wrong-toolchain"], toolchains=["wrong-toolchain"],
script_dir=(tmp_path), script_dir=(tmp_path),
) )
# Expect an Exception when wrong mpsd_release is provided # Expect an Exception when wrong mpsd_release is provided ( part of prepare_environment)
with pytest.raises(Exception): with pytest.raises(Exception):
mod.install_environment( mod.install_environment(
mpsd_release="wrong-mpsd-release", mpsd_release="wrong-mpsd-release",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment