mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 02:23:32 -04:00
bump utils to 13.0.1
brings in a fix to InvalidEmail/Phone/AddressExceptions not being instantiated correctly. `exception.message` is not a python standard, so we shouldn't be relying on it to transmit exception reasons - rather we should be using `str(exception)` instead. This involved a handful of small changes to the schema validation
This commit is contained in:
@@ -92,8 +92,8 @@ def test_send_email_raises_bad_email_as_InvalidEmailError(mocker):
|
||||
body=Mock()
|
||||
)
|
||||
|
||||
assert 'some error message from amazon' in excinfo.value.message
|
||||
assert 'clearly@invalid@email.com' in excinfo.value.message
|
||||
assert 'some error message from amazon' in str(excinfo.value)
|
||||
assert 'clearly@invalid@email.com' in str(excinfo.value)
|
||||
|
||||
|
||||
def test_send_email_raises_other_errs_as_AwsSesClientException(mocker):
|
||||
|
||||
Reference in New Issue
Block a user