Skip to content

Commit

Permalink
CU-86956du3q: Fix tests by adding the regression suite name where app…
Browse files Browse the repository at this point in the history
…licable
  • Loading branch information
mart-r committed Aug 19, 2024
1 parent 46b66cf commit cfc0209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/utils/regression/test_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def setUpClass(cls) -> None:
cls.tl = TranslationLayer.from_CDB(FakeCDB(*EXAMPLE_INFOS))
D = TestRegressionCase.D_SPECIFIC_CASE
rc: RegressionCase = RegressionCase.from_dict(NAME, D)
regr_checker = RegressionSuite([rc], MetaData.unknown())
regr_checker = RegressionSuite([rc], MetaData.unknown(), name="TEST SUITE 2")
cls.res = regr_checker.check_model(FakeCat(cls.tl), cls.tl)

def test_specific_case_CUI(self):
Expand Down Expand Up @@ -293,7 +293,7 @@ class MultiPlaceholderTests(unittest.TestCase):

@classmethod
def setUpClass(cls) -> None:
cls.rc = RegressionSuite.from_dict(cls.THE_DICT)
cls.rc = RegressionSuite.from_dict(cls.THE_DICT, name="TEST SUITE 1")

def test_reads_successfully(self):
self.assertIsInstance(self.rc, RegressionSuite)
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/regression/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def setUpClass(cls) -> None:
cls.mct_export = load_json(f)
cls.converter = utils.MedCATTrainerExportConverter(cls.mct_export)
cls.converted = cls.converter.convert()
cls.rc = RegressionSuite.from_dict(cls.converted)
cls.rc = RegressionSuite.from_dict(cls.converted, name="TEST SUITE 3")

def test_converted_is_dict(self):
self.assertIsInstance(self.converted, dict)
Expand Down

0 comments on commit cfc0209

Please sign in to comment.