[WIP] Fix for dao test

This commit is contained in:
Rebecca Law
2016-05-12 09:20:49 +01:00
parent f72f5aba05
commit f223da04df

View File

@@ -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