From 42baa19007bca699f2995c7e4df6f37827349ed4 Mon Sep 17 00:00:00 2001 From: Nayane Fernandes <143632290+ansnfernand@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:33:21 +0100 Subject: [PATCH] Revert "Update the projectName used by the unit tests" This reverts commit 82c651615193511d518b4130bdd9914e8b2c9920. --- tests/test_project.py | 58 +++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/tests/test_project.py b/tests/test_project.py index 101263a2..047f74fd 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -637,20 +637,20 @@ def helper_test_list_thermal_maps(project): assert str(e.str_itr()) == "['List thermal maps error: Project name is invalid.']" try: - project.list_thermal_maps("Assembly Tutorial", "Not a list") + project.list_thermal_maps("Tutorial Project", "Not a list") pytest.fail("No exception raised when using an invalid parameter") except SherlockListThermalMapsError as e: assert str(e.str_itr()) == "['List thermal maps error: cca_names is not a list.']" if project._is_connection_up(): try: - project.list_thermal_maps("Assembly Tutorial", ["CCA name that doesn't exist"]) + project.list_thermal_maps("Tutorial Project", ["CCA name that doesn't exist"]) pytest.fail("No exception raised when using an invalid parameter") except Exception as e: assert type(e) == SherlockListThermalMapsError try: - thermal_maps = project.list_thermal_maps("Assembly Tutorial", [expected_cca_name]) + thermal_maps = project.list_thermal_maps("Tutorial Project", [expected_cca_name]) assert len(thermal_maps) == 1 thermal_map = thermal_maps[0] assert thermal_map.ccaName == expected_cca_name @@ -663,7 +663,7 @@ def helper_test_list_thermal_maps(project): pytest.fail(str(e.str_itr())) try: - thermal_maps = project.list_thermal_maps("Assembly Tutorial") + thermal_maps = project.list_thermal_maps("Tutorial Project") for thermal_map in thermal_maps: assert hasattr(thermal_map, "ccaName") and hasattr(thermal_map, "thermalMaps") @@ -721,7 +721,7 @@ def helper_test_update_thermal_maps(project): ) thermal_map = [] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -746,7 +746,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -773,7 +773,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -800,7 +800,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -821,7 +821,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -848,7 +848,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -875,7 +875,7 @@ def helper_test_update_thermal_maps(project): "cca_names": "Main Board", } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -902,7 +902,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -929,7 +929,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -956,7 +956,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -983,7 +983,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1010,7 +1010,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1041,7 +1041,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1074,7 +1074,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1107,7 +1107,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1140,7 +1140,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1173,7 +1173,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1206,7 +1206,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1239,7 +1239,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1272,7 +1272,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1305,7 +1305,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - project.update_thermal_maps("Assembly Tutorial", thermal_map) + project.update_thermal_maps("Tutorial Project", thermal_map) pytest.fail("No exception raised when using an invalid parameter") except SherlockUpdateThermalMapsError as e: @@ -1332,7 +1332,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - result = project.update_thermal_maps("Assembly Tutorial", thermal_map) + result = project.update_thermal_maps("Tutorial Project", thermal_map) assert result == 0 except SherlockListThermalMapsError as e: @@ -1357,7 +1357,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - result = project.update_thermal_maps("Assembly Tutorial", thermal_map) + result = project.update_thermal_maps("Tutorial Project", thermal_map) assert result == 0 except SherlockListThermalMapsError as e: @@ -1376,7 +1376,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - result = project.update_thermal_maps("Assembly Tutorial", thermal_map) + result = project.update_thermal_maps("Tutorial Project", thermal_map) assert result == 0 except SherlockListThermalMapsError as e: @@ -1407,7 +1407,7 @@ def helper_test_update_thermal_maps(project): "cca_names": ["Main Board"], } ] - result = project.update_thermal_maps("Assembly Tutorial", thermal_map) + result = project.update_thermal_maps("Tutorial Project", thermal_map) assert result == 0 except SherlockListThermalMapsError as e: