Some more tests around edge cases

This commit is contained in:
Martyn Inglis
2016-03-09 11:35:12 +00:00
parent 14d621d243
commit 61af70a392
3 changed files with 30 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ def process_job(job_id):
job_size = job.notification_count
total_sent = stats.emails_requested + stats.sms_requested
if total_sent + job_size >= sending_limit:
if total_sent + job_size > sending_limit:
finished = datetime.utcnow()
job.status = 'finished'
job.processing_finished = finished