mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
notify-34 fix skipped tests
This commit is contained in:
@@ -15,9 +15,8 @@ def fake_client(notify_api):
|
||||
return fake_client
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Needs updating for TTS: New SMS client")
|
||||
def test_send_sms(fake_client, mocker):
|
||||
mock_send = mocker.patch.object(fake_client, 'try_send_sms')
|
||||
mock_send = mocker.patch.object(fake_client, 'send_sms')
|
||||
|
||||
fake_client.send_sms(
|
||||
to='to',
|
||||
@@ -28,14 +27,13 @@ def test_send_sms(fake_client, mocker):
|
||||
)
|
||||
|
||||
mock_send.assert_called_with(
|
||||
'to', 'content', 'reference', False, 'testing'
|
||||
to='to', content='content', reference='reference', international=False, sender='testing'
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Needs updating for TTS: New SMS client")
|
||||
def test_send_sms_error(fake_client, mocker):
|
||||
mocker.patch.object(
|
||||
fake_client, 'try_send_sms', side_effect=SmsClientResponseException('error')
|
||||
fake_client, 'send_sms', side_effect=SmsClientResponseException('error')
|
||||
)
|
||||
|
||||
with pytest.raises(SmsClientResponseException):
|
||||
|
||||
Reference in New Issue
Block a user