mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Changed error format on template subject duplication error
This commit is contained in:
@@ -193,7 +193,7 @@ def test_must_have_a_uniqe_subject_on_an_email_template(notify_api, sample_servi
|
||||
assert response.status_code == 400
|
||||
json_resp = json.loads(response.get_data(as_text=True))
|
||||
assert json_resp['result'] == 'error'
|
||||
assert json_resp['message'] == 'Duplicate template subject'
|
||||
assert json_resp['message'][0]['subject'] == 'Duplicate template subject'
|
||||
|
||||
|
||||
def test_should_be_able_to_update_a_template(notify_api, sample_service):
|
||||
|
||||
Reference in New Issue
Block a user