add more debug and add command to download csv files

This commit is contained in:
Kenneth Kehl
2024-07-01 10:35:20 -07:00
parent 1c4c524c9d
commit 5c305177a0
6 changed files with 49 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ from notifications_utils.recipients import (
get_international_phone_info,
international_phone_info,
is_us_phone_number,
show_mangled_number_clues,
try_validate_and_format_phone_number,
validate_and_format_phone_number,
validate_email_address,
@@ -324,6 +325,11 @@ def test_phone_number_rejects_invalid_international_values(phone_number, error_m
assert error_message == str(e.value)
def test_show_mangled_number_clues():
x = show_mangled_number_clues("848!!-202?-2020$$")
assert x == "XXX!!-XXX?-XXXX$$"
@pytest.mark.parametrize("email_address", valid_email_addresses)
def test_validate_email_address_accepts_valid(email_address):
try: