Refactor letters filename

This commit is contained in:
Ken Tsang
2017-08-21 14:33:08 +01:00
parent 789492060c
commit 8c4a084a0d
3 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ def register_blueprint(application):
from app.notifications.notifications_sms_callback import sms_callback_blueprint from app.notifications.notifications_sms_callback import sms_callback_blueprint
from app.notifications.notifications_letter_callback import letter_callback_blueprint from app.notifications.notifications_letter_callback import letter_callback_blueprint
from app.authentication.auth import requires_admin_auth, requires_auth, requires_no_auth, restrict_ip_sms from app.authentication.auth import requires_admin_auth, requires_auth, requires_no_auth, restrict_ip_sms
from app.letters.send_letter_jobs import letter_job from app.letters.rest import letter_job
from app.billing.rest import billing_blueprint from app.billing.rest import billing_blueprint
service_blueprint.before_request(requires_admin_auth) service_blueprint.before_request(requires_admin_auth)

View File

@@ -8,7 +8,7 @@ from tests import create_authorization_header
def test_send_letter_jobs(client, mocker): def test_send_letter_jobs(client, mocker):
mock_celery = mocker.patch("app.letters.send_letter_jobs.notify_celery.send_task") mock_celery = mocker.patch("app.letters.rest.notify_celery.send_task")
job_ids = {"job_ids": [str(uuid.uuid4()), str(uuid.uuid4()), str(uuid.uuid4())]} job_ids = {"job_ids": [str(uuid.uuid4()), str(uuid.uuid4()), str(uuid.uuid4())]}
auth_header = create_authorization_header() auth_header = create_authorization_header()
@@ -27,7 +27,7 @@ def test_send_letter_jobs(client, mocker):
def test_send_letter_jobs_throws_validation_error(client, mocker): def test_send_letter_jobs_throws_validation_error(client, mocker):
mock_celery = mocker.patch("app.letters.send_letter_jobs.notify_celery.send_task") mock_celery = mocker.patch("app.letters.rest.notify_celery.send_task")
job_ids = {"job_ids": ["1", "2"]} job_ids = {"job_ids": ["1", "2"]}