mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Fixing up tests to validate the call to the celery tasks.
- mocker used to test call or otherwise of the task - no new tests just a spring clean
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from itsdangerous import URLSafeSerializer
|
||||
from app import celery, twilio_client, db
|
||||
from app import notify_celery, twilio_client, db
|
||||
from app.clients.sms.twilio import TwilioClientException
|
||||
from app.dao.templates_dao import get_model_templates
|
||||
from app.models import Notification
|
||||
from flask import current_app
|
||||
|
||||
|
||||
@celery.task(name="send-sms", bind="True")
|
||||
@notify_celery.task(name="send-sms", bind="True")
|
||||
def send_sms(service_id, notification_id, encrypted_notification, secret_key, salt):
|
||||
serializer = URLSafeSerializer(secret_key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user