mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Fixed test names
This commit is contained in:
@@ -129,7 +129,7 @@ def test_send_sms_override_configured_shortcode_with_sender(mocker, mock_firetex
|
|||||||
assert request_args['from'][0] == 'fromservice'
|
assert request_args['from'][0] == 'fromservice'
|
||||||
|
|
||||||
|
|
||||||
def test_send_sms_raises_if_firetext_rejects_with_timeout(rmock, mock_firetext_client):
|
def test_send_sms_raises_if_firetext_rejects_with_connect_timeout(rmock, mock_firetext_client):
|
||||||
to = content = reference = 'foo'
|
to = content = reference = 'foo'
|
||||||
|
|
||||||
with pytest.raises(FiretextClientResponseException) as exc:
|
with pytest.raises(FiretextClientResponseException) as exc:
|
||||||
@@ -140,7 +140,7 @@ def test_send_sms_raises_if_firetext_rejects_with_timeout(rmock, mock_firetext_c
|
|||||||
assert exc.value.text == 'Gateway Time-out'
|
assert exc.value.text == 'Gateway Time-out'
|
||||||
|
|
||||||
|
|
||||||
def test_send_sms_raises_if_firetext_rejects_with_timeout(rmock, mock_firetext_client):
|
def test_send_sms_raises_if_firetext_rejects_with_read_timeout(rmock, mock_firetext_client):
|
||||||
to = content = reference = 'foo'
|
to = content = reference = 'foo'
|
||||||
|
|
||||||
with pytest.raises(FiretextClientResponseException) as exc:
|
with pytest.raises(FiretextClientResponseException) as exc:
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ def test_send_sms_raises_if_mmg_fails_to_return_json(notify_api, mocker):
|
|||||||
assert exc.value.text == 'NOT AT ALL VALID JSON {"key" : "value"}}'
|
assert exc.value.text == 'NOT AT ALL VALID JSON {"key" : "value"}}'
|
||||||
|
|
||||||
|
|
||||||
def test_send_sms_raises_if_mmg_rejects_with_timeout(rmock):
|
def test_send_sms_raises_if_mmg_rejects_with_connect_timeout(rmock):
|
||||||
to = content = reference = 'foo'
|
to = content = reference = 'foo'
|
||||||
|
|
||||||
with pytest.raises(MMGClientResponseException) as exc:
|
with pytest.raises(MMGClientResponseException) as exc:
|
||||||
@@ -127,7 +127,7 @@ def test_send_sms_raises_if_mmg_rejects_with_timeout(rmock):
|
|||||||
assert exc.value.text == 'Gateway Time-out'
|
assert exc.value.text == 'Gateway Time-out'
|
||||||
|
|
||||||
|
|
||||||
def test_send_sms_raises_if_firetext_rejects_with_timeout(rmock):
|
def test_send_sms_raises_if_mmg_rejects_with_read_timeout(rmock):
|
||||||
to = content = reference = 'foo'
|
to = content = reference = 'foo'
|
||||||
|
|
||||||
with pytest.raises(MMGClientResponseException) as exc:
|
with pytest.raises(MMGClientResponseException) as exc:
|
||||||
|
|||||||
Reference in New Issue
Block a user