From 7c57848c8dd8b09eb255bb49c27f7e954eddd258 Mon Sep 17 00:00:00 2001 From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de> Date: Wed, 31 May 2023 11:23:01 +0200 Subject: [PATCH] update doc string of test_install_environment_zlib --- tests.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests.py b/tests.py index 01935e7..4b4b215 100644 --- a/tests.py +++ b/tests.py @@ -149,9 +149,6 @@ def test_setup_log_cmd(tmp_path): def test_install_environment_wrong_toolchain(tmp_path): """Test exception is raised for non-existing toolchain.""" - # This is a long test, its handy to test this with print statements printed to - # stdout, use: - # pytest -s # Expect an Exception when wrong toolchains are provided with pytest.raises(Exception): mod.install_environment( @@ -175,11 +172,14 @@ def test_install_environment_wrong_mpsd_release(tmp_path): def test_install_environment_zlib(tmp_path): """Test installation of toolchain.""" - # prepare a test of global generic with only zlib to test the installation - # prepare dev-23a release - # script_dir = tmp_path / "test_global_generic" - # for actaual installation avoid tmp_path as the lenght of the path is too long - # and spack complains + # Prepare a test installation of global generic + # with only zlib to test the installation + # This is a long test, + # its handy to test this with print statements printed to + # stdout, use: + # pytest -s + # for this installation avoid tmp_path as + # the length of the path becomes too long and spack complains script_dir = Path("/tmp/test_global_generic") if script_dir.exists(): shutil.rmtree(script_dir) -- GitLab