From 88088d6997978e170d2d2308faf68f378a257195 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

---
 tests.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests.py b/tests.py
index fc3f7e9..69763fe 100644
--- a/tests.py
+++ b/tests.py
@@ -461,6 +461,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