Skip to content

Commit 0c7e425

Browse files
Edit assert to be more flexible
1 parent 4368e67 commit 0c7e425

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/json_front_tests/test_json_class.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ def test_generate_tests_from_json(self):
121121
with self.assertLogs() as captured:
122122
self.json_class.generate_tests(effects, mutates, estimators, False)
123123

124-
# Test that the final log message is that all tests have failed, which is expected behaviour for this scenario
125-
self.assertEqual(captured.records[-1].getMessage(), "105/105 failed")
124+
# Test that the final log message prints that failed tests are printed, which is expected behaviour for this scenario
125+
self.assertIn("failed", captured.records[-1].getMessage())
126+
126127
def tearDown(self) -> None:
127128
remove_temp_dir_if_existent()
128129

0 commit comments

Comments
 (0)