From 79fcc02b18ae286a868c95224861c4a802ff4bee Mon Sep 17 00:00:00 2001
From: iamashwin99 <ashwin-kumar.karnad@mpsd.mpg.de>
Date: Fri, 4 Aug 2023 14:14:32 +0200
Subject: [PATCH] put back test_environment_status

---
 tests/test_mpsd_software.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/tests/test_mpsd_software.py b/tests/test_mpsd_software.py
index 9521510..1183250 100644
--- a/tests/test_mpsd_software.py
+++ b/tests/test_mpsd_software.py
@@ -498,6 +498,19 @@ def create_fake_environment(tmp_path, mpsd_release, expected_toolchain_map=None)
     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():
+        assert set(toolchain_map[microarch]) == set(expected_toolchain_map[microarch])
+
+
 def test_initialise_environment(tmp_path):
     """Test that init_file is created as expected."""
     # test that the init file is created as expected
-- 
GitLab