Add send_task to antivirus app for scanning precompiled letters

This commit is contained in:
Ken Tsang
2018-03-19 16:25:13 +00:00
parent b1ac580e0a
commit 65733a30a1
2 changed files with 15 additions and 4 deletions

View File

@@ -479,6 +479,7 @@ def test_post_precompiled_letter_notification_returns_201(client, notify_user, m
sample_service = create_service(service_permissions=['letter', 'precompiled_letter'])
s3mock = mocker.patch('app.v2.notifications.post_notifications.upload_letter_pdf')
mocker.patch('app.v2.notifications.post_notifications.pdf_page_count', return_value=5)
mocker.patch("app.letters.rest.notify_celery.send_task")
data = {
"reference": "letter-reference",
"content": "bGV0dGVyLWNvbnRlbnQ="