Update tests to match the new csv data

This commit is contained in:
Pea Tyczynska
2018-12-06 16:13:42 +00:00
parent 9ab6542678
commit 9a76d6706e
2 changed files with 2 additions and 2 deletions

View File

@@ -844,5 +844,5 @@ def test_get_all_notifications_for_job_returns_csv_format(
assert len(resp['notifications']) == 1 assert len(resp['notifications']) == 1
notification = resp['notifications'][0] notification = resp['notifications'][0]
assert set(notification.keys()) == \ 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']) 'template_name', 'job_name', 'status', 'row_number', 'recipient'])

View File

@@ -146,7 +146,7 @@ def test_notification_for_csv_returns_bst_correctly(sample_template):
notification = create_notification(sample_template) notification = create_notification(sample_template)
serialized = notification.serialize_for_csv() 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(): def test_notification_personalisation_getter_returns_empty_dict_from_None():