mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
[WIP] Fix for dao test
This commit is contained in:
@@ -474,9 +474,10 @@ def test_save_notification_and_increment_job(sample_template, sample_job, mmg_pr
|
||||
def test_should_not_increment_job_if_notification_fails_to_persist(sample_template, sample_job, mmg_provider_name):
|
||||
random_id = str(uuid.uuid4())
|
||||
assert Notification.query.count() == 0
|
||||
data = data = {
|
||||
data = {
|
||||
'id': random_id,
|
||||
'to': '+44709123456',
|
||||
'job_id': sample_job.id,
|
||||
'service': sample_template.service,
|
||||
'service_id': sample_template.service.id,
|
||||
'template': sample_template,
|
||||
@@ -913,4 +914,4 @@ def _notification_json(sample_template, job_id=None):
|
||||
}
|
||||
if job_id:
|
||||
data.update({'job_id': job_id})
|
||||
return data
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user