Skip to content

Commit

Permalink
Revert "Update the projectName used by the unit tests"
Browse files Browse the repository at this point in the history
This reverts commit 82c6516.
  • Loading branch information
ansnfernand committed Jan 26, 2024
1 parent 82c6516 commit 42baa19
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 42baa19

Please sign in to comment.