From f14c6c7ab129130abe316c3bb778d911a6b4e4ef Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 7 Jul 2025 12:06:18 -0700 Subject: [PATCH] more tests --- tests/app/clients/test_aws_pinpoint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/app/clients/test_aws_pinpoint.py b/tests/app/clients/test_aws_pinpoint.py index d6077c597..b6a50c0d7 100644 --- a/tests/app/clients/test_aws_pinpoint.py +++ b/tests/app/clients/test_aws_pinpoint.py @@ -18,7 +18,7 @@ def test_validate_phone_number_success(): client_instance._client.phone_number_validate.return_value = mock_response 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( {"IsoCountryCode": "US", "PhoneNumber": "+1234567890"} ) @@ -33,8 +33,8 @@ def test_validate_phone_number_client_error(): "phone number validate", ) - result = client_instance.validate_phone_number("US", "bad-number") - assert result == "Foo" + client_instance.validate_phone_number("US", "bad-number") + current_app.logger.exception.assert_called_once_with( "#notify-debug-validate-phone-number Could not validate with pinpoint" )