Merge pull request #1925 from alphagov/bump-utils-for-email-validation

Updated notifications-util to the latest version
This commit is contained in:
Leo Hemsted
2018-07-02 14:30:31 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,6 @@ notifications-python-client==4.8.2
# PaaS
awscli-cwlogs>=1.4,<1.5
git+https://github.com/alphagov/notifications-utils.git@27.0.0#egg=notifications-utils==27.0.0
git+https://github.com/alphagov/notifications-utils.git@29.3.0#egg=notifications-utils==29.3.0
git+https://github.com/alphagov/boto.git@2.43.0-patch3#egg=boto==2.43.0-patch3

View File

@@ -228,6 +228,7 @@ def test_post_email_schema_bad_uuid_and_missing_email_address():
@pytest.mark.parametrize('email_address, err_msg', [
('example', 'email_address Not a valid email address'),
(12345, 'email_address 12345 is not of type string'),
('with(brackets)@example.com', 'email_address Not a valid email address'),
(None, 'email_address None is not of type string'),
([], 'email_address [] is not of type string'),
({}, 'email_address {} is not of type string'),