mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
conversations only looks for 404 errors from inbound sms
stops masking some 503s in tests
This commit is contained in:
@@ -1886,6 +1886,20 @@ def mock_get_inbound_sms(mocker):
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_get_inbound_sms_by_id_with_no_messages(mocker):
|
||||
def _get_inbound_sms_by_id(
|
||||
service_id,
|
||||
notification_id
|
||||
):
|
||||
raise HTTPError(response=Mock(status_code=404))
|
||||
|
||||
return mocker.patch(
|
||||
'app.service_api_client.get_inbound_sms_by_id',
|
||||
side_effect=_get_inbound_sms_by_id,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_most_recent_inbound_sms(mocker):
|
||||
def _get_most_recent_inbound_sms(
|
||||
|
||||
Reference in New Issue
Block a user