diff --git a/tests/app/job/test_rest.py b/tests/app/job/test_rest.py index dcf0cf5f8..2dfe16854 100644 --- a/tests/app/job/test_rest.py +++ b/tests/app/job/test_rest.py @@ -844,5 +844,5 @@ def test_get_all_notifications_for_job_returns_csv_format( assert len(resp['notifications']) == 1 notification = resp['notifications'][0] assert set(notification.keys()) == \ - set(['created_at', 'created_by_name', 'template_type', + set(['created_at', 'created_by_name', 'created_by_email_address', 'template_type', 'template_name', 'job_name', 'status', 'row_number', 'recipient']) diff --git a/tests/app/test_model.py b/tests/app/test_model.py index d7e51f7cc..afea955d9 100644 --- a/tests/app/test_model.py +++ b/tests/app/test_model.py @@ -146,7 +146,7 @@ def test_notification_for_csv_returns_bst_correctly(sample_template): notification = create_notification(sample_template) serialized = notification.serialize_for_csv() - assert serialized['created_at'] == 'Monday 27 March 2017 at 00:01' + assert serialized['created_at'] == '2017-03-27 00:01:53' def test_notification_personalisation_getter_returns_empty_dict_from_None():