mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Added notification count to jobs.
This commit is contained in:
@@ -159,7 +159,8 @@ def sample_job(notify_db,
|
||||
'template_id': template.id,
|
||||
'bucket_name': bucket_name,
|
||||
'file_name': file_name,
|
||||
'original_file_name': 'some.csv'
|
||||
'original_file_name': 'some.csv',
|
||||
'notification_count': 1
|
||||
}
|
||||
job = Job(**data)
|
||||
save_job(job)
|
||||
|
||||
@@ -24,7 +24,8 @@ def test_save_job(notify_db, notify_db_session, sample_template):
|
||||
'template_id': sample_template.id,
|
||||
'bucket_name': bucket_name,
|
||||
'file_name': file_name,
|
||||
'original_file_name': 'some.csv'
|
||||
'original_file_name': 'some.csv',
|
||||
'notification_count': 1
|
||||
}
|
||||
|
||||
job = Job(**data)
|
||||
|
||||
@@ -90,6 +90,7 @@ def test_create_job(notify_api, notify_db, notify_db_session, sample_template):
|
||||
'original_file_name': original_file_name,
|
||||
'bucket_name': bucket_name,
|
||||
'file_name': file_name,
|
||||
'notification_count': 1
|
||||
}
|
||||
|
||||
with notify_api.test_request_context():
|
||||
@@ -142,7 +143,8 @@ def test_get_update_job_status(notify_api,
|
||||
'bucket_name': sample_job.bucket_name,
|
||||
'file_name': sample_job.file_name,
|
||||
'original_file_name': sample_job.original_file_name,
|
||||
'status': 'in progress'
|
||||
'status': 'in progress',
|
||||
'notification_count': 1
|
||||
}
|
||||
|
||||
with notify_api.test_request_context():
|
||||
|
||||
Reference in New Issue
Block a user