mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Account for missing scheduled for field
Jobs have a `scheduled_for` field. Single letter uploads don’t. At the moment we treat both of them as `Job`s. So the `Job` model needs to account for when the `scheduled_for` field is missing.
This commit is contained in:
@@ -1732,7 +1732,6 @@ def mock_get_uploads(mocker, api_user_active):
|
||||
'notification_count': 10,
|
||||
'created_at': '2016-01-01 11:09:00.061258',
|
||||
'statistics': [{'count': 8, 'status': 'delivered'}, {'count': 2, 'status': 'temporary-failure'}],
|
||||
'scheduled_for': None,
|
||||
'job_status': 'finished',
|
||||
'upload_type': 'job'},
|
||||
{'id': 'job_id_1',
|
||||
@@ -1740,7 +1739,6 @@ def mock_get_uploads(mocker, api_user_active):
|
||||
'notification_count': 1,
|
||||
'created_at': '2016-01-01 11:09:00.061258',
|
||||
'statistics': [{'count': 1, 'status': 'delivered'}],
|
||||
'scheduled_for': None,
|
||||
'job_status': 'finished',
|
||||
'upload_type': 'letter'}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user