From 1fef46598f1aca9aa6b9ee9cade34ff8ed4138f7 Mon Sep 17 00:00:00 2001 From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de> Date: Tue, 9 May 2023 14:06:34 +0200 Subject: [PATCH] start test for install --- tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests.py b/tests.py index 3c545f5..0f9392d 100644 --- a/tests.py +++ b/tests.py @@ -80,3 +80,12 @@ def test_setup_log_cmd(tmp_path): # check that logs/install-software-environment.log is updated assert os.path.exists("logs/install-software-environment.log") assert os.path.getsize("logs/install-software-environment.log") > initial_bytes + +def test_install_environment(tmp_path): + # Expect and Exception when wrong toolchains are provided + with pytest.raises(Exception): + mod.install_environment( + mpsd_release="dev-23a", + toolchains=["wrong-toolchain"], + script_dir=(tmp_path), + ) \ No newline at end of file -- GitLab