Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled weekly dependency update for week 31 #1938

Merged
merged 54 commits into from
Aug 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
bfd3110
Update botocore from 1.12.164 to 1.12.200
pyup-bot Aug 5, 2019
4c812ef
Update certifi from 2019.3.9 to 2019.6.16
pyup-bot Aug 5, 2019
ca4340b
Update datadog from 0.29.2 to 0.29.3
pyup-bot Aug 5, 2019
596f6bb
Update docutils from 0.14 to 0.15.2
pyup-bot Aug 5, 2019
50af5b0
Update faker from 1.0.7 to 2.0.0
pyup-bot Aug 5, 2019
82e023c
Update gitpython from 2.1.11 to 2.1.13
pyup-bot Aug 5, 2019
069bc8c
Update google-api-core from 1.11.1 to 1.14.2
pyup-bot Aug 5, 2019
248d65c
Update google-cloud-core from 1.0.1 to 1.0.3
pyup-bot Aug 5, 2019
eb15297
Update graphene from 2.1.5 to 2.1.7
pyup-bot Aug 5, 2019
3252b02
Update graphql-core from 2.2 to 2.2.1
pyup-bot Aug 5, 2019
be16f0d
Update graphql-relay from 0.4.5 to 2.0.0
pyup-bot Aug 5, 2019
cbf76c0
Update importlib-metadata from 0.17 to 0.19
pyup-bot Aug 5, 2019
e69043c
Update more-itertools from 7.0.0 to 7.2.0
pyup-bot Aug 5, 2019
8143c32
Update packaging from 19.0 to 19.1
pyup-bot Aug 5, 2019
814c38c
Update protobuf from 3.8.0 to 3.9.0
pyup-bot Aug 5, 2019
2b860d6
Update protobuf from 3.8.0 to 3.9.0
pyup-bot Aug 5, 2019
9fd88a1
Update pyparsing from 2.4.0 to 2.4.2
pyup-bot Aug 5, 2019
2a5eeaf
Update pyrsistent from 0.15.2 to 0.15.4
pyup-bot Aug 5, 2019
65ba3d3
Update pytz from 2019.1 to 2019.2
pyup-bot Aug 5, 2019
279198f
Update pyyaml from 5.1.1 to 5.1.2
pyup-bot Aug 5, 2019
a85fa0b
Update ruamel.yaml from 0.15.97 to 0.16.0
pyup-bot Aug 5, 2019
186036d
Update rx from 1.6.1 to 3.0.1
pyup-bot Aug 5, 2019
d31f82b
Update snowballstemmer from 1.2.1 to 1.9.0
pyup-bot Aug 5, 2019
06a28f2
Update sphinxcontrib-serializinghtml from 1.1.1 to 1.1.3
pyup-bot Aug 5, 2019
5a6a09c
Update typing from 3.6.6 to 3.7.4
pyup-bot Aug 5, 2019
901e21b
Update unidecode from 1.0.23 to 1.1.1
pyup-bot Aug 5, 2019
93aec27
Update zipp from 0.5.1 to 0.5.2
pyup-bot Aug 5, 2019
bd90964
Update bcrypt from 3.1.6 to 3.1.7
pyup-bot Aug 5, 2019
45612e7
Update bcrypt from 3.1.6 to 3.1.7
pyup-bot Aug 5, 2019
64d35ae
Update boto3 from 1.9.164 to 1.9.200
pyup-bot Aug 5, 2019
06b6a40
Update django from 2.2.3 to 2.2.4
pyup-bot Aug 5, 2019
d3987fd
Update django-filter from 2.1.0 to 2.2.0
pyup-bot Aug 5, 2019
3951452
Update djangorestframework from 3.9.4 to 3.10.2
pyup-bot Aug 5, 2019
3e6d377
Update dockerflow from 2019.5.0 to 2019.6.0
pyup-bot Aug 5, 2019
7a9d931
Update drf-yasg from 1.15.0 to 1.16.1
pyup-bot Aug 5, 2019
009d4ec
Update fastecdsa from 1.7.3 to 1.7.4
pyup-bot Aug 5, 2019
c89d3bc
Update flake8 from 3.7.7 to 3.7.8
pyup-bot Aug 5, 2019
bd4256a
Update google-cloud-storage from 1.16.1 to 1.17.0
pyup-bot Aug 5, 2019
1e14b72
Update graphene-django from 2.3.0 to 2.4.0
pyup-bot Aug 5, 2019
4947f10
Update jsonschema from 3.0.1 to 3.0.2
pyup-bot Aug 5, 2019
207fbac
Update newrelic from 4.20.0.120 to 4.20.1.121
pyup-bot Aug 5, 2019
fc21f17
Update psycopg2 from 2.8.2 to 2.8.3
pyup-bot Aug 5, 2019
6ce513a
Update pyasn1 from 0.4.5 to 0.4.6
pyup-bot Aug 5, 2019
f5ea1f3
Update pyasn1-modules from 0.2.5 to 0.2.6
pyup-bot Aug 5, 2019
2f34697
Update pytest from 4.6.2 to 5.0.1
pyup-bot Aug 5, 2019
90c068f
Update pytest-django from 3.5.0 to 3.5.1
pyup-bot Aug 5, 2019
9441cc1
Update whitenoise from 4.1.2 to 4.1.3
pyup-bot Aug 5, 2019
3256ab3
Update django-extensions from 2.1.7 to 2.2.1
pyup-bot Aug 5, 2019
a6bafa9
Update pydriller from 1.8 to 1.9.2
pyup-bot Aug 5, 2019
97dcbf8
Update werkzeug from 0.15.4 to 0.15.5
pyup-bot Aug 5, 2019
2028806
Update sphinx from 2.1.1 to 2.1.2
pyup-bot Aug 5, 2019
1ec7387
Merge branch 'master' into pyup-scheduled-update-2019-08-05
rehandalal Aug 8, 2019
6dcdf23
Add missing constraint - ruamel.yaml.clib
rehandalal Aug 8, 2019
a9a0682
Change exception message checking to match pytest 5.
mythmon Aug 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion normandy/base/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_register_view_requires_name(self):
router = MixedViewRouter()
with pytest.raises(TypeError) as err:
router.register_view("view", View, allow_cdn=True)
assert "missing 1 required keyword-only argument: 'name'" in str(err)
assert "missing 1 required keyword-only argument: 'name'" in str(err.value)

def test_get_urls_includes_non_viewset_views(self):
router = MixedViewRouter()
Expand Down
14 changes: 7 additions & 7 deletions normandy/recipes/tests/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ def test_it_checks_config(self, settings):
settings.REMOTE_SETTINGS_PASSWORD = "p4ssw0rd"
with pytest.raises(ImproperlyConfigured) as exc:
exports.RemoteSettings().check_config()
assert "REMOTE_SETTINGS_USERNAME" in str(exc)
assert "REMOTE_SETTINGS_USERNAME" in str(exc.value)

# Set empty USERNAME
settings.REMOTE_SETTINGS_USERNAME = ""
with pytest.raises(ImproperlyConfigured) as exc:
exports.RemoteSettings().check_config()
assert "REMOTE_SETTINGS_USERNAME" in str(exc)
assert "REMOTE_SETTINGS_USERNAME" in str(exc.value)

# Leave out PASSWORD
settings.REMOTE_SETTINGS_URL = "http://some-server/v1"
settings.REMOTE_SETTINGS_USERNAME = "usename"
settings.REMOTE_SETTINGS_PASSWORD = None
with pytest.raises(ImproperlyConfigured) as exc:
exports.RemoteSettings().check_config()
assert "REMOTE_SETTINGS_PASSWORD" in str(exc)
assert "REMOTE_SETTINGS_PASSWORD" in str(exc.value)

# Leave out COLLECTION_ID
settings.REMOTE_SETTINGS_URL = "http://some-server/v1"
Expand All @@ -71,7 +71,7 @@ def test_it_checks_config(self, settings):
settings.REMOTE_SETTINGS_COLLECTION_ID = None
with pytest.raises(ImproperlyConfigured) as exc:
exports.RemoteSettings().check_config()
assert "REMOTE_SETTINGS_COLLECTION_ID" in str(exc)
assert "REMOTE_SETTINGS_COLLECTION_ID" in str(exc.value)

def test_check_connection(self, rs_settings, requestsmock):
# Root URL should return currently authenticated user.
Expand All @@ -80,7 +80,7 @@ def test_check_connection(self, rs_settings, requestsmock):

with pytest.raises(ImproperlyConfigured) as exc:
exports.RemoteSettings().check_config()
assert "Invalid Remote Settings credentials" in str(exc)
assert "Invalid Remote Settings credentials" in str(exc.value)

requestsmock.get(
f"{rs_settings.REMOTE_SETTINGS_URL}/",
Expand Down Expand Up @@ -112,7 +112,7 @@ def test_check_connection(self, rs_settings, requestsmock):
assert (
f"Remote Settings collection {rs_settings.REMOTE_SETTINGS_COLLECTION_ID} "
"is not writable"
) in str(exc)
) in str(exc.value)

requestsmock.get(
collection_url,
Expand All @@ -128,7 +128,7 @@ def test_check_connection(self, rs_settings, requestsmock):
assert (
"Review was not disabled on Remote Settings collection "
f"{rs_settings.REMOTE_SETTINGS_COLLECTION_ID}."
) in str(exc)
) in str(exc.value)

requestsmock.get(
f"{rs_settings.REMOTE_SETTINGS_URL}/",
Expand Down
14 changes: 7 additions & 7 deletions normandy/recipes/tests/test_signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ def test_it_checks_settings(self, settings):
settings.AUTOGRAPH_HAWK_SECRET_KEY = "hawk secret key"
with pytest.raises(ImproperlyConfigured) as exc:
signing.Autographer()
assert "AUTOGRAPH_URL" in str(exc)
assert "AUTOGRAPH_URL" in str(exc.value)

# Leave out HAWK_ID
settings.AUTOGRAPH_URL = "https://autograph.example.com"
settings.AUTOGRAPH_HAWK_ID = None
settings.AUTOGRAPH_HAWK_SECRET_KEY = "hawk secret key"
with pytest.raises(ImproperlyConfigured) as exc:
signing.Autographer()
assert "AUTOGRAPH_HAWK_ID" in str(exc)
assert "AUTOGRAPH_HAWK_ID" in str(exc.value)

# Leave out HAWK_SECRET_KEY
settings.AUTOGRAPH_URL = "https://autograph.example.com"
settings.AUTOGRAPH_HAWK_ID = "hawk id"
settings.AUTOGRAPH_HAWK_SECRET_KEY = None
with pytest.raises(ImproperlyConfigured) as exc:
signing.Autographer()
assert "AUTOGRAPH_HAWK_SECRET_KEY" in str(exc)
assert "AUTOGRAPH_HAWK_SECRET_KEY" in str(exc.value)

# Include everything
settings.AUTOGRAPH_URL = "https://autograph.example.com"
Expand Down Expand Up @@ -171,13 +171,13 @@ def test_incomplete_cert(self):
bad_data = "-----BEGIN CERTIFICATE-----\nMIIGXTCCBEWgAwIBAgIEAQAACjANBgkq"
with pytest.raises(signing.CertificateParseError) as exc:
signing.extract_certs_from_pem(bad_data)
assert "Unexpected end of input." in str(exc)
assert "Unexpected end of input." in str(exc.value)

def test_not_a_cert(self):
bad_data = "hello world"
with pytest.raises(signing.CertificateParseError) as exc:
signing.extract_certs_from_pem(bad_data)
assert 'Unexpected input "hello world"' in str(exc)
assert 'Unexpected input "hello world"' in str(exc.value)


class TestParseCertsFromDer(object):
Expand Down Expand Up @@ -391,5 +391,5 @@ def test_it_reads_general_time_format(self):
def test_it_errors_on_unsupported_formats(self):
with pytest.raises(signing.BadCertificate) as exc:
signing.read_timestamp_object({"unsupportedTimestamp": b"gibberish"})
assert "Timestamp not in expected format" in str(exc)
assert "unsupportedTimestamp" in str(exc)
assert "Timestamp not in expected format" in str(exc.value)
assert "unsupportedTimestamp" in str(exc.value)
4 changes: 2 additions & 2 deletions normandy/recipes/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def test_error_cases(self, bad_val):
fraction_to_key(bad_val)

# Check that it is the expected error, not some spurious error from elsewhere.
assert "must be between 0 and 1 inclusive" in str(exc)
assert "must be between 0 and 1 inclusive" in str(exc.value)
# Check that the bad value is mentioned
assert str(bad_val) in str(exc)
assert str(bad_val) in str(exc.value)

def test_result_length(self):
for _ in range(100):
Expand Down
Loading