Skip to content

Commit 4eedcb9

Browse files
authored
Merge pull request #105 from mekza/fix_werkzeug
Fix import error with the Werkzeug 1.0.0rc1
2 parents 2431431 + cbaa89a commit 4eedcb9

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,28 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["2.7", "3.5", "3.6", "3.7", "3.8"]
13+
tox_env: [
14+
"py27",
15+
"py35",
16+
"py36",
17+
"py37",
18+
"py38",
19+
"pre",
20+
]
21+
22+
include:
23+
- tox_env: "py27"
24+
python: "2.7"
25+
- tox_env: "py35"
26+
python: "3.5"
27+
- tox_env: "py36"
28+
python: "3.6"
29+
- tox_env: "py37"
30+
python: "3.7"
31+
- tox_env: "py38"
32+
python: "3.8"
33+
- tox_env: "pre"
34+
python: "3.7"
1435

1536
steps:
1637
- uses: actions/checkout@v1
@@ -24,7 +45,7 @@ jobs:
2445
pip install tox
2546
- name: Test
2647
run: |
27-
tox -e py
48+
tox -e ${{ matrix.tox_env }}
2849
2950
deploy:
3051

docs/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
Changelog
44
=========
55

6+
0.15.1 (2020-02-03)
7+
-------------------
8+
9+
- Fix ``ImportError`` with ``Werkzeug 1.0.0rc1`` (`#105`_).
10+
11+
.. _#105: https://github.com/pytest-dev/pytest-flask/pull/105
12+
613
0.15.0 (2019-05-13)
714
-------------------
815

pytest_flask/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pytest
1212

1313
from flask import json
14-
from werkzeug import cached_property
14+
from werkzeug.utils import cached_property
1515

1616
from .fixtures import (
1717
client, config, accept_json, accept_jsonp, accept_any, accept_mimetype,

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ norecursedirs = .git .tox env coverage docs
88
pep8ignore =
99
docs/conf.py ALL
1010
pep8maxlinelength = 119
11+
junit_family=xunit2
1112

1213

1314
[testenv]
@@ -28,6 +29,11 @@ commands =
2829
-ra \
2930
{posargs:tests}
3031

32+
[testenv:pre]
33+
pip_pre=true
34+
usedevelop = {[testenv]usedevelop}
35+
deps = {[testenv]deps}
36+
commands = {[testenv]commands}
3137

3238
[testenv:docs]
3339
changedir = docs

0 commit comments

Comments
 (0)