mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
receive notifications
This commit is contained in:
@@ -3,7 +3,7 @@ from datetime import datetime
|
|||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from flask import json
|
from flask import current_app, json
|
||||||
|
|
||||||
from app.enums import ServicePermissionType
|
from app.enums import ServicePermissionType
|
||||||
from app.models import InboundSms
|
from app.models import InboundSms
|
||||||
@@ -373,10 +373,7 @@ def test_fetch_potential_service_cant_find_it(mock_dao):
|
|||||||
|
|
||||||
|
|
||||||
def test_receive_sns_sms_inbound_disabled(mocker):
|
def test_receive_sns_sms_inbound_disabled(mocker):
|
||||||
mocker.patch(
|
current_app.config["RECEIVE_INBOUND_SMS"] = False
|
||||||
"app.notifications.receive_notifications.current_app.config",
|
|
||||||
{"RECEIVE_INBOUND_SMS": False},
|
|
||||||
)
|
|
||||||
response, status_code = receive_sns_sms()
|
response, status_code = receive_sns_sms()
|
||||||
|
|
||||||
assert status_code == 200
|
assert status_code == 200
|
||||||
|
|||||||
Reference in New Issue
Block a user