Add jobs.notifications_delivered and jobs.notifications_failed counts to the jobs table.

This commit is contained in:
Rebecca Law
2016-05-23 15:44:57 +01:00
parent a436ff32a1
commit dff60175a4
3 changed files with 53 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ def test_create_job(sample_template):
assert Job.query.count() == 1
job_from_db = Job.query.get(job_id)
assert job == job_from_db
assert job_from_db.notifications_delivered == 0
assert job_from_db.notifications_failed == 0
def test_get_job_by_id(sample_job):