diff --git a/tests/app/celery/test_tasks.py b/tests/app/celery/test_tasks.py index 04dd2343b..05515824d 100644 --- a/tests/app/celery/test_tasks.py +++ b/tests/app/celery/test_tasks.py @@ -1817,10 +1817,10 @@ def mock_notification(): @patch("app.notifications_dao.get_notifications_for_service") @patch("app.aws.s3.get_personalisation_from_s3") @patch("app.aws.s3.get_phone_number_from_s3") -@patch("app.get_csv_location") +@patch("app.celery.tasks.get_csv_location") @patch("app.aws.s3.s3upload") @patch("app.aws.s3.delete_s3_object") -@patch("app.current_app") +@patch("app.celery.tasks.current_app") def test_generate_notifications_report_normal_case( mock_current_app, mock_delete,