From 1fbc5d7d90c35cfa78fa3601b0d8a595d2615550 Mon Sep 17 00:00:00 2001 From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de> Date: Tue, 13 Jun 2023 16:14:30 +0200 Subject: [PATCH] redesign the status test --- test_mpsd-software.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test_mpsd-software.py b/test_mpsd-software.py index a18fb16..6e3e23b 100644 --- a/test_mpsd-software.py +++ b/test_mpsd-software.py @@ -464,6 +464,13 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None) toolchain_lua_file.touch() return expected_toolchain_map +def test_environment_status(tmp_path): + """Test that the environment status is correct.""" + toolchain_map = mod.environment_status("fake-release", tmp_path) + assert toolchain_map is None + mpsd_release = "dev-23a" + expected_toolchain_map = create_fake_environment(tmp_path, mpsd_release) + # check that the environment statuxis is correct toolchain_map = mod.environment_status(mpsd_release, tmp_path) # convert each list to a set to ensure that the order doesn't matter for microarch in expected_toolchain_map.keys(): -- GitLab