From 6dd5e320c9385efe8af42de4b0d55ebd401625f8 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 29 Aug 2025 08:48:43 -0700 Subject: [PATCH] fix or remove skipped tests --- .ds.baseline | 6 +++--- tests/app/notifications/test_validators.py | 6 ++---- .../app/service/send_notification/test_send_notification.py | 2 -- tests/app/user/test_rest.py | 1 - tests/app/user/test_rest_verify.py | 1 - 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.ds.baseline b/.ds.baseline index 8a248a4dd..ea715f36c 100644 --- a/.ds.baseline +++ b/.ds.baseline @@ -285,7 +285,7 @@ "filename": "tests/app/notifications/test_validators.py", "hashed_secret": "6c1a8443963d02d13ffe575a71abe19ea731fb66", "is_verified": false, - "line_number": 672, + "line_number": 670, "is_secret": false } ], @@ -339,7 +339,7 @@ "filename": "tests/app/user/test_rest.py", "hashed_secret": "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33", "is_verified": false, - "line_number": 874, + "line_number": 873, "is_secret": false } ], @@ -374,5 +374,5 @@ } ] }, - "generated_at": "2025-08-12T18:08:49Z" + "generated_at": "2025-08-29T15:48:27Z" } diff --git a/tests/app/notifications/test_validators.py b/tests/app/notifications/test_validators.py index 5cf9f2de0..355c3f490 100644 --- a/tests/app/notifications/test_validators.py +++ b/tests/app/notifications/test_validators.py @@ -473,9 +473,7 @@ def test_validate_template_calls_all_validators_exception_message_too_long( @pytest.mark.parametrize("key_type", [KeyType.TEST, KeyType.NORMAL]) -@pytest.mark.skip( - "We currently don't support international numbers, our validation fails before here" -) +# @pytest.mark.skip("We currently don't support international numbers") def test_validate_and_format_recipient_fails_when_international_number_and_service_does_not_allow_int_sms( key_type, notify_db_session, @@ -495,7 +493,7 @@ def test_validate_and_format_recipient_fails_when_international_number_and_servi @pytest.mark.parametrize("key_type", [KeyType.TEST, KeyType.NORMAL]) -@pytest.mark.skip("We currently don't support international numbers") +# @pytest.mark.skip("We currently don't support international numbers") def test_validate_and_format_recipient_succeeds_with_international_numbers_if_service_does_allow_int_sms( key_type, sample_service_full_permissions ): diff --git a/tests/app/service/send_notification/test_send_notification.py b/tests/app/service/send_notification/test_send_notification.py index 19e41d7d7..3ad0dd8be 100644 --- a/tests/app/service/send_notification/test_send_notification.py +++ b/tests/app/service/send_notification/test_send_notification.py @@ -1153,7 +1153,6 @@ def test_should_allow_store_original_number_on_sms_notification( assert "1" == notifications[0].to -# @pytest.mark.skip("We don't support international at moment") def test_should_not_allow_sending_to_international_number_without_international_permission( client, sample_template, mocker ): @@ -1178,7 +1177,6 @@ def test_should_not_allow_sending_to_international_number_without_international_ assert error_json["message"] == "Cannot send to international mobile numbers" -# @pytest.mark.skip("We don't support international at the moment") def test_should_allow_sending_to_international_number_with_international_permission( client, sample_service_full_permissions, mocker ): diff --git a/tests/app/user/test_rest.py b/tests/app/user/test_rest.py index 09afbdce2..28e697dd8 100644 --- a/tests/app/user/test_rest.py +++ b/tests/app/user/test_rest.py @@ -342,7 +342,6 @@ def test_post_user_attribute_with_updated_by( mock_persist_notification.assert_not_called() -@pytest.mark.skip("We don't support international at the moment") def test_post_user_attribute_with_updated_by_sends_notification_to_international_from_number( admin_request, mocker, sample_user, team_member_mobile_edit_template ): diff --git a/tests/app/user/test_rest_verify.py b/tests/app/user/test_rest_verify.py index b284ff2d5..c8cf5faeb 100644 --- a/tests/app/user/test_rest_verify.py +++ b/tests/app/user/test_rest_verify.py @@ -499,7 +499,6 @@ def test_send_user_email_code( ) -# @pytest.mark.skip(reason="Broken email functionality") def test_send_user_email_code_with_urlencoded_next_param( admin_request, mocker, sample_user, email_2fa_code_template ):