Skip to content

Commit c94733b

Browse files
committed
Non-silent exception raising
1 parent 0509fa2 commit c94733b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/main_tests/test_main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ def test_ctf_batches(self):
171171

172172
self.assertEqual([result["passed"] for result in all_results], [True])
173173

174+
def test_ctf_batches_exception(self):
175+
framework = CausalTestingFramework(self.paths, query="test_input < 0")
176+
framework.setup()
177+
178+
# Load and run tests
179+
framework.load_tests()
180+
with self.assertRaises(ValueError):
181+
list(framework.run_tests_in_batches())
182+
174183
def test_ctf_batches_matches_run_tests(self):
175184
# Run the tests normally
176185
framework = CausalTestingFramework(self.paths)

0 commit comments

Comments
 (0)