Skip to content

Commit

Permalink
receive notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Nov 11, 2024
1 parent 194df02 commit 959e3ff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/app/notifications/test_receive_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest import mock

import pytest
from flask import json
from flask import current_app, json

from app.enums import ServicePermissionType
from app.models import InboundSms
Expand Down Expand Up @@ -373,10 +373,7 @@ def test_fetch_potential_service_cant_find_it(mock_dao):


def test_receive_sns_sms_inbound_disabled(mocker):
mocker.patch(
"app.notifications.receive_notifications.current_app.config",
{"RECEIVE_INBOUND_SMS": False},
)
current_app.config["RECEIVE_INBOUND_SMS"] = False
response, status_code = receive_sns_sms()

assert status_code == 200
Expand Down

0 comments on commit 959e3ff

Please sign in to comment.