diff --git a/tests/app/clients/test_firetext.py b/tests/app/clients/test_firetext.py index 4251f89bb..1edcab564 100644 --- a/tests/app/clients/test_firetext.py +++ b/tests/app/clients/test_firetext.py @@ -129,7 +129,7 @@ def test_send_sms_override_configured_shortcode_with_sender(mocker, mock_firetex 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' 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' -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' with pytest.raises(FiretextClientResponseException) as exc: diff --git a/tests/app/clients/test_mmg.py b/tests/app/clients/test_mmg.py index 2b4ce7bd8..73bbc012e 100644 --- a/tests/app/clients/test_mmg.py +++ b/tests/app/clients/test_mmg.py @@ -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"}}' -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' 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' -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' with pytest.raises(MMGClientResponseException) as exc: