mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Update tests to match the new csv data
This commit is contained in:
@@ -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'])
|
||||||
|
|||||||
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user