Update error message for password to match marshmallow errors.

This commit is contained in:
Adam Shimali
2016-01-19 12:07:14 +00:00
parent f839bae1f5
commit 44824c9985
2 changed files with 5 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ def test_post_user_missing_attribute_password(notify_api, notify_db, notify_db_s
assert resp.status_code == 400
assert User.query.count() == 1
json_resp = json.loads(resp.get_data(as_text=True))
assert {'error': 'password missing'} == json_resp['message']
assert {'password': ['Missing data for required field.']} == json_resp['message']
def test_put_user(notify_api, notify_db, notify_db_session, sample_user, sample_admin_service_id):