diff --git a/poetry.lock b/poetry.lock index 912b1019..601de0f2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -13,17 +13,17 @@ files = [ [[package]] name = "awscli" -version = "1.29.22" +version = "1.29.23" description = "Universal Command Line Environment for AWS." optional = false python-versions = ">= 3.7" files = [ - {file = "awscli-1.29.22-py3-none-any.whl", hash = "sha256:031ce6bcb58fa4f8817dd94043a64af0174f82a3d5df7abf4d511120e8b8398e"}, - {file = "awscli-1.29.22.tar.gz", hash = "sha256:2a289197a51ba5cde621fc197efc17871cdf3034132d053d8d0af3e5cb338d13"}, + {file = "awscli-1.29.23-py3-none-any.whl", hash = "sha256:ea8a9d3aa2aac992a0e87fb48f3cd93f3451c8e2500a872dd6531547f51fec9c"}, + {file = "awscli-1.29.23.tar.gz", hash = "sha256:e37e9176829fa9e52540ea29aec4d4ff3f238e4843f6436852954ebd08007e5b"}, ] [package.dependencies] -botocore = "1.31.22" +botocore = "1.31.23" colorama = ">=0.2.5,<0.4.5" docutils = ">=0.10,<0.17" PyYAML = ">=3.10,<6.1" @@ -106,17 +106,17 @@ files = [ [[package]] name = "boto3" -version = "1.28.22" +version = "1.28.23" description = "The AWS SDK for Python" optional = false python-versions = ">= 3.7" files = [ - {file = "boto3-1.28.22-py3-none-any.whl", hash = "sha256:0c1c1d19232018ac49fd2c0a94aa0b802f5d222e89448ff50734626bce454b32"}, - {file = "boto3-1.28.22.tar.gz", hash = "sha256:af1ce129f462cdc8dfb1a1c559d7ed725e51344fb0ae4a56d9453196bf416555"}, + {file = "boto3-1.28.23-py3-none-any.whl", hash = "sha256:807d4a4698ba9a76d5901a1663ff1943d13efbc388908f38b60f209c3511f1d6"}, + {file = "boto3-1.28.23.tar.gz", hash = "sha256:839deb868d1278dd5a3f87208cfc4a8e259c95ca3cbe607cc322d435f02f63b0"}, ] [package.dependencies] -botocore = ">=1.31.22,<1.32.0" +botocore = ">=1.31.23,<1.32.0" jmespath = ">=0.7.1,<2.0.0" s3transfer = ">=0.6.0,<0.7.0" @@ -125,13 +125,13 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"] [[package]] name = "botocore" -version = "1.31.22" +version = "1.31.23" description = "Low-level, data-driven core of boto 3." optional = false python-versions = ">= 3.7" files = [ - {file = "botocore-1.31.22-py3-none-any.whl", hash = "sha256:b91025ca1a16b13ae662bdb46e7c16d2c53619df23bf3583a43791519da14870"}, - {file = "botocore-1.31.22.tar.gz", hash = "sha256:d193ab0742ddc4af3a3994af4ec993acf5ac75460f298880fe869765e7bc578d"}, + {file = "botocore-1.31.23-py3-none-any.whl", hash = "sha256:d0a95f74eb6bd99e8f52f16af0a430ba6cd1526744f40ffdd3fcccceeaf961c2"}, + {file = "botocore-1.31.23.tar.gz", hash = "sha256:f3258feaebce48f138eb2675168c4d33cc3d99e9f45af13cb8de47bdc2b9c573"}, ] [package.dependencies] @@ -326,13 +326,13 @@ files = [ [[package]] name = "click" -version = "8.1.3" +version = "8.1.6" description = "Composable command line interface toolkit" optional = false python-versions = ">=3.7" files = [ - {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, - {file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"}, + {file = "click-8.1.6-py3-none-any.whl", hash = "sha256:fa244bb30b3b5ee2cae3da8f55c9e5e0c0e86093306301fb418eb9dc40fbded5"}, + {file = "click-8.1.6.tar.gz", hash = "sha256:48ee849951919527a045bfe3bf7baa8a959c423134e1a5b98c05c20ba75a1cbd"}, ] [package.dependencies] @@ -844,13 +844,13 @@ files = [ [[package]] name = "phonenumbers" -version = "8.13.13" +version = "8.13.18" description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers." optional = false python-versions = "*" files = [ - {file = "phonenumbers-8.13.13-py2.py3-none-any.whl", hash = "sha256:55657adb607484aba6d56270b8a1f9b302f35496076e6c02051d06ed366374d9"}, - {file = "phonenumbers-8.13.13.tar.gz", hash = "sha256:4bdf8c989aff0cdb105aef170ad2c21f14b4537bcb32cf349f1f710df992a40a"}, + {file = "phonenumbers-8.13.18-py2.py3-none-any.whl", hash = "sha256:3d802739a22592e4127139349937753dee9b6a20bdd5d56847cd885bdc766b1f"}, + {file = "phonenumbers-8.13.18.tar.gz", hash = "sha256:b360c756252805d44b447b5bca6d250cf6bd6c69b6f0f4258f3bfe5ab81bef69"}, ] [[package]] @@ -1278,13 +1278,13 @@ files = [ [[package]] name = "types-cachetools" -version = "5.3.0.5" +version = "5.3.0.6" description = "Typing stubs for cachetools" optional = false python-versions = "*" files = [ - {file = "types-cachetools-5.3.0.5.tar.gz", hash = "sha256:67fa46d51a650896770aee0ba80f0e61dc4a7d1373198eec1bc0622263eaa256"}, - {file = "types_cachetools-5.3.0.5-py3-none-any.whl", hash = "sha256:c0c5fa00199017d974c935bf043c467d5204e4f835141e489b48765b5ac1d960"}, + {file = "types-cachetools-5.3.0.6.tar.gz", hash = "sha256:595f0342d246c8ba534f5a762cf4c2f60ecb61e8002b8b2277fd5cf791d4e851"}, + {file = "types_cachetools-5.3.0.6-py3-none-any.whl", hash = "sha256:f7f8a25bfe306f2e6bc2ad0a2f949d9e72f2d91036d509c36d3810bf728bc6e1"}, ] [[package]] @@ -1303,13 +1303,13 @@ cryptography = ">=35.0.0" [[package]] name = "types-python-dateutil" -version = "2.8.19.13" +version = "2.8.19.14" description = "Typing stubs for python-dateutil" optional = false python-versions = "*" files = [ - {file = "types-python-dateutil-2.8.19.13.tar.gz", hash = "sha256:09a0275f95ee31ce68196710ed2c3d1b9dc42e0b61cc43acc369a42cb939134f"}, - {file = "types_python_dateutil-2.8.19.13-py3-none-any.whl", hash = "sha256:0b0e7c68e7043b0354b26a1e0225cb1baea7abb1b324d02b50e2d08f1221043f"}, + {file = "types-python-dateutil-2.8.19.14.tar.gz", hash = "sha256:1f4f10ac98bb8b16ade9dbee3518d9ace017821d94b057a425b069f834737f4b"}, + {file = "types_python_dateutil-2.8.19.14-py3-none-any.whl", hash = "sha256:f977b8de27787639986b4e28963263fd0e5158942b3ecef91b9335c130cb1ce9"}, ] [[package]] @@ -1325,13 +1325,13 @@ files = [ [[package]] name = "types-pyyaml" -version = "6.0.12.10" +version = "6.0.12.11" description = "Typing stubs for PyYAML" optional = false python-versions = "*" files = [ - {file = "types-PyYAML-6.0.12.10.tar.gz", hash = "sha256:ebab3d0700b946553724ae6ca636ea932c1b0868701d4af121630e78d695fc97"}, - {file = "types_PyYAML-6.0.12.10-py3-none-any.whl", hash = "sha256:662fa444963eff9b68120d70cda1af5a5f2aa57900003c2006d7626450eaae5f"}, + {file = "types-PyYAML-6.0.12.11.tar.gz", hash = "sha256:7d340b19ca28cddfdba438ee638cd4084bde213e501a3978738543e27094775b"}, + {file = "types_PyYAML-6.0.12.11-py3-none-any.whl", hash = "sha256:a461508f3096d1d5810ec5ab95d7eeecb651f3a15b71959999988942063bf01d"}, ] [[package]] @@ -1414,13 +1414,13 @@ files = [ [[package]] name = "werkzeug" -version = "2.3.3" +version = "2.3.6" description = "The comprehensive WSGI web application library." optional = false python-versions = ">=3.8" files = [ - {file = "Werkzeug-2.3.3-py3-none-any.whl", hash = "sha256:4866679a0722de00796a74086238bb3b98d90f423f05de039abb09315487254a"}, - {file = "Werkzeug-2.3.3.tar.gz", hash = "sha256:a987caf1092edc7523edb139edb20c70571c4a8d5eed02e0b547b4739174d091"}, + {file = "Werkzeug-2.3.6-py3-none-any.whl", hash = "sha256:935539fa1413afbb9195b24880778422ed620c0fc09670945185cce4d91a8890"}, + {file = "Werkzeug-2.3.6.tar.gz", hash = "sha256:98c774df2f91b05550078891dee5f0eb0cb797a522c757a2452b9cee5b202330"}, ] [package.dependencies] @@ -1432,4 +1432,4 @@ watchdog = ["watchdog (>=2.3)"] [metadata] lock-version = "2.0" python-versions = "~3.10" -content-hash = "aaefd41184be78476afc022af33bbe8066050c5f78b581ddfaf8fd208cd605ef" +content-hash = "30f1741a1023d25b99c00576714f78b1d3ab0fecf1cf45fdda108537f4ba0f8f" diff --git a/pyproject.toml b/pyproject.toml index c9243c84..ec15d13a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,15 +30,15 @@ Jinja2 = "^3.0.0" statsd = "3.3.0" Flask-Redis = "0.4.0" PyYAML = "5.3.1" -phonenumbers = "8.13.13" +phonenumbers = "8.13.18" pytz = "2021.3" smartypants = "2.0.1" pypdf2 = "1.28.6" py_w3c = "0.3.1" # required by both api and admin -awscli = "1.29.22" -boto3 = "1.28.22" -werkzeug = "2.3.3" +awscli = "1.29.23" +boto3 = "1.28.23" +werkzeug = "2.3.6" itsdangerous = "2.1.2" [tool.poetry.group.test.dependencies] @@ -53,11 +53,11 @@ flake8 = "3.9.2" flake8-print = "4.0.1" mypy = "1.4.1" black = "23.7.0" -click = "8.1.3" -types-python-dateutil = "2.8.19.13" -types-PyYAML = "6.0.12.10" +click = "8.1.6" +types-python-dateutil = "2.8.19.14" +types-PyYAML = "6.0.12.11" types-pytz = "2022.7.1.2" types-bleach = "5.0.3.1" -types-cachetools = "5.3.0.5" +types-cachetools = "5.3.0.6" types-redis = "4.6.0.3" types-requests = "2.31.0.2" diff --git a/tests/test_recipient_validation.py b/tests/test_recipient_validation.py index 587982de..df93ed09 100644 --- a/tests/test_recipient_validation.py +++ b/tests/test_recipient_validation.py @@ -419,8 +419,8 @@ def test_validates_against_safelist_of_email_addresses(email_address): @pytest.mark.parametrize( "phone_number, expected_formatted", [ - ("+20-12-1234-1234", "+20 121 234 1234"), # Egypt - ("+7 499 1231212", "+7 499 123-12-12"), # Moscow (Russia) + ("+20 012-123-1234", "+20 012-123-1234"), + ("+7 499 1231212", "+7 499 123-12-12"), # Egypt # Moscow (Russia) ("+1-202-555-0104", "+1 202-555-0104"), # Washington DC (USA) ("+23051234567", "+23051234567"), # Mauritius ("+33(0)1 12345678", "+33 1 12 34 56 78"), # Paris (France)