Skip to content

Commit

Permalink
Bump jsonschema from 3.2.0 to 4.4.0 (#2873)
Browse files Browse the repository at this point in the history
* Bump jsonschema from 3.2.0 to 4.0.1

Bumps [jsonschema](https://github.com/Julian/jsonschema) from 3.2.0 to 4.0.1.
- [Release notes](https://github.com/Julian/jsonschema/releases)
- [Changelog](https://github.com/Julian/jsonschema/blob/main/CHANGELOG.rst)
- [Commits](python-jsonschema/jsonschema@v3.2.0...v4.0.1)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Loose dependency in setup

* Upgrade jsonschema to 4.4.0

* Fix bravado tests

* Bravado http_client is required in raw tests too

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Leplatre <mathieu@mozilla.com>
  • Loading branch information
dependabot[bot] and leplatrem authored Jan 12, 2022
1 parent b981eea commit af97809
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
black==21.12b0
bravado==11.0.3
bravado_core==5.17.0
flake8==4.0.1
isort==5.10.1
Expand All @@ -14,4 +15,4 @@ tox==3.24.5
WebTest==3.0.0
wheel==0.37.1
zest.releaser==6.22.2
zope.sqlalchemy==1.6
zope.sqlalchemy==1.6
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cornice==6.0.1
cornice-swagger==1.0.1
dockerflow==2021.7.0
jsonpatch==1.32
jsonschema==3.2.0
jsonschema==4.4.0
logging-color-formatter==1.0.2
newrelic==7.2.4.171
psycopg2-binary==2.9.3
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ install_requires =
cornice
cornice_swagger
dockerflow
jsonschema>=3.0.0
jsonschema
jsonpatch
logging-color-formatter
python-dateutil
Expand Down
6 changes: 5 additions & 1 deletion tests/openapi/support.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest

from bravado.requests_client import RequestsClient
from bravado_core.request import IncomingRequest, unmarshal_request
from bravado_core.resource import build_resources
from bravado_core.response import OutgoingResponse, validate_response
Expand All @@ -22,14 +23,17 @@ def setUpClass(cls):
super().setUpClass()
cls.spec_dict = cls.app.get("/__api__").json
bravado_config = {
# Use models (Python classes) instead of dicts for #/definitions/{models}
# use_models causes us to break in bravado-core 4.13.0,
# probably because of
# https://github.com/Yelp/bravado-core/pull/254, and we
# don't actually use the generated models in our tests
# here anyhow.
"use_models": False
}
cls.spec = Spec.from_dict(cls.spec_dict, config=bravado_config)
cls.spec = Spec.from_dict(
cls.spec_dict, http_client=RequestsClient(), config=bravado_config
)
cls.resources = build_resources(cls.spec)

@classmethod
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ commands =
python --version
py.test {posargs}
deps =
bravado
bravado_core
pytest
pytest-cache
Expand Down

0 comments on commit af97809

Please sign in to comment.