more tests

This commit is contained in:
Kenneth Kehl
2025-07-07 12:06:18 -07:00
parent 56685f4d0f
commit f14c6c7ab1

View File

@@ -18,7 +18,7 @@ def test_validate_phone_number_success():
client_instance._client.phone_number_validate.return_value = mock_response client_instance._client.phone_number_validate.return_value = mock_response
result = client_instance.validate_phone_number("US", "+1234567890") result = client_instance.validate_phone_number("US", "+1234567890")
assert result == "Foo" assert result is not None
client_instance._client.phone_number_validate.assert_called_once_with( client_instance._client.phone_number_validate.assert_called_once_with(
{"IsoCountryCode": "US", "PhoneNumber": "+1234567890"} {"IsoCountryCode": "US", "PhoneNumber": "+1234567890"}
) )
@@ -33,8 +33,8 @@ def test_validate_phone_number_client_error():
"phone number validate", "phone number validate",
) )
result = client_instance.validate_phone_number("US", "bad-number") client_instance.validate_phone_number("US", "bad-number")
assert result == "Foo"
current_app.logger.exception.assert_called_once_with( current_app.logger.exception.assert_called_once_with(
"#notify-debug-validate-phone-number Could not validate with pinpoint" "#notify-debug-validate-phone-number Could not validate with pinpoint"
) )