-
Notifications
You must be signed in to change notification settings - Fork 108
Description
The dependencies for flask-testing do not include a version of flask. This results in failure when attempting to use with flask 1.1.0 (released on July 4, 2019).
The package is still compatible with 1.0.* version of flask. The latest version that I was able to test with was 1.0.4 (also released on July 4. 2019).
The following error results when using with flask 1.1.0:
File "/home/vsts/work/1/s/.tox/py37/lib/python3.7/site-packages/flask_testing/__init__.py", line 13, in <module> from .utils import TestCase, LiveServerTestCase File "/home/vsts/work/1/s/.tox/py37/lib/python3.7/site-packages/flask_testing/utils.py", line 38, in <module> from flask import json_available, templating, template_rendered ImportError: cannot import name 'json_available' from 'flask' (/home/vsts/work/1/s/.tox/py37/lib/python3.7/site-packages/flask/__init__.py)
Workaround
Pin the flask version in requirements.txt file for pip as:
flask==1.0.*