Skip to content

Commit 312a540

Browse files
authored
Merge pull request #35 from plowman/patch-1
Remove deprecated werkzeug import
2 parents fee4cee + 136999f commit 312a540

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

flask_restx/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from jsonschema import RefResolver
2323

24-
from werkzeug import cached_property
24+
from werkzeug.utils import cached_property
2525
from werkzeug.datastructures import Headers
2626
from werkzeug.exceptions import HTTPException, MethodNotAllowed, NotFound, NotAcceptable, InternalServerError
2727
from werkzeug.wrappers import BaseResponse

requirements/install.pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
aniso8601>=0.82
22
jsonschema
33
Flask>=0.8
4-
werkzeug<=0.16.1
4+
werkzeug
55
pytz
66
six>=1.3.0
77
enum34; python_version < '3.4'

requirements/test.pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pytest==4.6.5; python_version < '3.5'
55
pytest==5.0.1; python_version >= '3.5'
66
pytest-benchmark==3.2.2
77
pytest-cov==2.7.1
8-
pytest-flask==0.15.0
8+
pytest-flask==0.15.1
99
pytest-mock==1.10.4
1010
pytest-profiling==1.7.0
1111
pytest-sugar==0.9.2

tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def test_handle_non_api_error(self, app, client):
413413

414414
response = client.get("/foo")
415415
assert response.status_code == 404
416-
assert response.headers['Content-Type'] == 'text/html'
416+
assert response.headers['Content-Type'] == 'text/html; charset=utf-8'
417417

418418
def test_non_api_error_404_catchall(self, app, client):
419419
api = restx.Api(app, catch_all_404s=True)

0 commit comments

Comments
 (0)