notify-34 fix skipped tests

This commit is contained in:
Kenneth Kehl
2023-05-18 09:46:36 -07:00
parent 49a73a2238
commit 6e597aafad
7 changed files with 7 additions and 22 deletions

View File

@@ -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):