Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Dec 17, 2024
1 parent 6d30138 commit 22674bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 22674bd

Please sign in to comment.