Skip to content

Commit e584983

Browse files
committed
ApiValidationError
1 parent b3cd4f8 commit e584983

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lambdas/shared/tests/test_common/test_errors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ def test_errors_mandatory_error_no_message(self):
197197
raise errors.MandatoryError()
198198
self.assertIsNone(context.exception.message)
199199

200-
def test_errors_validation_error(self):
201-
"""Test correct operation of ValidationError"""
202-
with self.assertRaises(errors.ValidationError) as context:
203-
raise errors.ValidationError()
200+
def test_errors_api_validation_error(self):
201+
"""Test correct operation of ApiValidationError"""
202+
with self.assertRaises(errors.ApiValidationError) as context:
203+
raise errors.ApiValidationError()
204204
outcome = context.exception.to_operation_outcome()
205205
self.assertIsNone(outcome)
206206

0 commit comments

Comments
 (0)