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:
Leo Hemsted
2017-01-09 16:22:27 +00:00
parent 098567c151
commit 501187a9f4
8 changed files with 31 additions and 32 deletions

View File

@@ -60,7 +60,7 @@ def test_create_invited_user_invalid_email(client, sample_service, mocker):
assert response.status_code == 400
json_resp = json.loads(response.get_data(as_text=True))
assert json_resp['result'] == 'error'
assert json_resp['message'] == {'email_address': ['Not a valid email address.']}
assert json_resp['message'] == {'email_address': ['Not a valid email address']}
assert mocked.call_count == 0