From 22674bd7a261691462f7bbb0a3b16c31ff4f0b41 Mon Sep 17 00:00:00 2001 From: Jonathan S Berry Date: Tue, 17 Dec 2024 13:31:24 +0000 Subject: [PATCH] Fix tests --- .../tests/actions/test_phone_notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/dataset_subscriptions/tests/actions/test_phone_notifications.py b/ckanext/dataset_subscriptions/tests/actions/test_phone_notifications.py index 9404479..a635bf1 100644 --- a/ckanext/dataset_subscriptions/tests/actions/test_phone_notifications.py +++ b/ckanext/dataset_subscriptions/tests/actions/test_phone_notifications.py @@ -54,7 +54,7 @@ def test_sms_notifications_disabled_enabled(notifications_enabled): @pytest.mark.usefixtures("with_request_context") @pytest.mark.usefixtures("clean_db") @pytest.mark.usefixtures("with_plugins") -@mock.patch('ckanext.dataset_subscriptions.actions.twilio_notifications.client.messages.create') +@mock.patch('ckanext.dataset_subscriptions.actions.phone_notifications.client.messages.create') def test_if_sms_notifications_are_generated(create_message_mock, sysadmin_context): create_user_with_resources(True, True, False) expected_sid = 'SM87105da94bff44b999e4e6eb90d8eb6a' @@ -67,7 +67,7 @@ def test_if_sms_notifications_are_generated(create_message_mock, sysadmin_contex @pytest.mark.usefixtures("with_request_context") @pytest.mark.usefixtures("clean_db") @pytest.mark.usefixtures("with_plugins") -@mock.patch('ckanext.dataset_subscriptions.actions.twilio_notifications.client.messages.create') +@mock.patch('ckanext.dataset_subscriptions.actions.phone_notifications.client.messages.create') def test_if_whatsapp_notifications_are_generated(create_message_mock, sysadmin_context): create_user_with_resources(True, False, True) expected_sid = 'SM87105da94bff44b999e4e6eb90d8eb6a'