Skip to content

Commit 0556a23

Browse files
author
Steve Ayers
committed
Remove unused test
1 parent 1de6424 commit 0556a23

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/validate_test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -302,24 +302,6 @@ def _run_compilation_error_tests(self, msg: message.Message, expected: str):
302302
v.collect_violations(msg)
303303
self.assertEqual(str(cvce.exception), expected)
304304

305-
def _run_eval_error_tests(self, msg: message.Message, expected: str):
306-
"""A helper function for testing compilation errors when validating.
307-
308-
The tests are run using validators created via all possible methods and
309-
validation is done via a call to `validate` as well as a call to `collect_violations`.
310-
"""
311-
for label, v in get_default_validator():
312-
with self.subTest(label=label):
313-
# Test validate
314-
with self.assertRaises(celpy.CELEvalError) as vce:
315-
v.validate(msg)
316-
self.assertEqual(str(vce.exception), expected)
317-
318-
# Test collect_violations
319-
with self.assertRaises(celpy.CELEvalError) as cvce:
320-
v.collect_violations(msg)
321-
self.assertEqual(str(cvce.exception), expected)
322-
323305
def _compare_violations(self, actual: list[rules.Violation], expected: list[rules.Violation]) -> None:
324306
"""Compares two lists of violations. The violations are expected to be in the expected order also."""
325307
self.assertEqual(len(actual), len(expected))

0 commit comments

Comments
 (0)