From 7d68eaed598019c5ecf5d4f21152b741e08c1ada Mon Sep 17 00:00:00 2001 From: John Dewey Date: Mon, 10 Feb 2020 22:02:04 -0800 Subject: [PATCH] Correct issue with Werkzeug 1.0.0 Corrected cached_property import from Werkzeug 1.0.0. Fixes: #777 --- flask_restplus/api.py | 2 +- requirements/test.pip | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_restplus/api.py b/flask_restplus/api.py index b5433ce3..e775084c 100644 --- a/flask_restplus/api.py +++ b/flask_restplus/api.py @@ -25,7 +25,7 @@ from jsonschema import RefResolver -from werkzeug import cached_property +from werkzeug.utils import cached_property from werkzeug.datastructures import Headers from werkzeug.exceptions import HTTPException, MethodNotAllowed, NotFound, NotAcceptable, InternalServerError from werkzeug.wrappers import BaseResponse diff --git a/requirements/test.pip b/requirements/test.pip index 984f897a..2fe326ad 100644 --- a/requirements/test.pip +++ b/requirements/test.pip @@ -5,7 +5,7 @@ pytest==4.6.5; python_version < '3.5' pytest==5.0.1; python_version >= '3.5' pytest-benchmark==3.2.2 pytest-cov==2.7.1 -pytest-flask==0.15.0 +pytest-flask==0.15.1 pytest-mock==1.10.4 pytest-profiling==1.7.0 pytest-sugar==0.9.2