Skip to content

Commit

Permalink
fix travis test (#145)
Browse files Browse the repository at this point in the history
* fix travis test

* validation

* fix werkzeug import

* fix unit test

* fix unit test

* **

* typo

* pin werkzeug for old version flask

* fix unit test

* only flask >=1.0 support werkzeug 1.x

* flask older version does not work well with new python

* flask release 0.12.5
  • Loading branch information
jnozsc authored Feb 19, 2020
1 parent 17f19d7 commit ef069ca
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 21 deletions.
49 changes: 30 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,46 @@
language: python
dist:
- bionic
- xenial
python:
- "3.5"
- "3.4"
- "3.3"
- "2.7"
- "2.6"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
- FLASK=0.11.1
- FLASK=0.10.1
- FLASK=0.9
- FLASK=0.8.1
- FLASK=1.1.1 WERKZEUG=1.0.0
- FLASK=1.0.4 WERKZEUG=1.0.0
- FLASK=0.12.5 WERKZEUG=0.16.1
- FLASK=0.11.1 WERKZEUG=0.16.1
- FLASK=0.10.1 WERKZEUG=0.16.1
- FLASK=0.9 WERKZEUG=0.16.1
- FLASK=0.8.1 WERKZEUG=0.16.1
matrix:
exclude:
- python: "3.3"
env: FLASK=0.9
- python: "3.3"
env: FLASK=0.8.1
- python: "3.4"
env: FLASK=0.9
- python: "3.4"
env: FLASK=0.8.1
- python: "3.5"
env: FLASK=0.9
env: FLASK=0.9 WERKZEUG=0.16.1
- python: "3.5"
env: FLASK=0.8.1
env: FLASK=0.8.1 WERKZEUG=0.16.1
- python: "3.6"
env: FLASK=0.9 WERKZEUG=0.16.1
- python: "3.6"
env: FLASK=0.8.1 WERKZEUG=0.16.1
- python: "3.7"
env: FLASK=0.9 WERKZEUG=0.16.1
- python: "3.7"
env: FLASK=0.8.1 WERKZEUG=0.16.1
- python: "3.8"
env: FLASK=0.9 WERKZEUG=0.16.1
- python: "3.8"
env: FLASK=0.8.1 WERKZEUG=0.16.1
install:
- pip install flask==$FLASK coverage
- pip install werkzeug==$WERKZEUG flask==$FLASK coverage
- pip install -e .
script:
- python setup.py test
notifications:
email:
- [email protected]
- [email protected]
version: ~> 1.0
2 changes: 1 addition & 1 deletion flask_testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Python 2 urlparse fallback
from urlparse import urlparse, urljoin

from werkzeug import cached_property
from werkzeug.utils import cached_property

# Use Flask's preferred JSON module so that our runtime behavior matches.
from flask import json_available, templating, template_rendered
Expand Down
2 changes: 1 addition & 1 deletion tests/flask_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def redirect_to_flask_docs():

@app.route("/ajax/")
def ajax():
return jsonify(name="test")
return jsonify(**dict(name="test"))

@app.route("/forbidden/")
def forbidden():
Expand Down

0 comments on commit ef069ca

Please sign in to comment.