Task is the same whether job based or not

- use notification to build action
- notification has job
- based in encrypted blob
This commit is contained in:
Martyn Inglis
2016-02-23 17:39:08 +00:00
parent 635debb5a6
commit 201c2d01ba
5 changed files with 32 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
import uuid
import app.celery.tasks
import moto
from tests import create_authorization_header
from flask import json
from app.models import Service
@@ -484,8 +483,7 @@ def test_should_allow_valid_sms_notification_for_job(notify_api, sample_job, moc
app.celery.tasks.send_sms.apply_async.assert_called_once_with(
(str(sample_job.template.service_id),
notification_id,
"something_encrypted",
str(sample_job.id)),
"something_encrypted"),
queue="sms"
)
assert response.status_code == 201