File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Changelog
7
7
Next Release
8
8
------------
9
9
10
+ - ``pytest-flask `` now requires ``pytest>=3.6 `` (`#84 `_).
11
+
10
12
- Add new ``--live-server-port `` option to select the port the live server will use (`#82 `_).
11
13
Thanks `@RazerM `_ for the PR.
12
14
@@ -16,10 +18,13 @@ Next Release
16
18
``--no-live-server-clean-stop `` in the command-line (`#49 `_).
17
19
Thanks `@jadkik `_ for the PR.
18
20
21
+ - Internal fixes silence pytest warnings, more visible now with ``pytest-3.8.0 `` (`#84 `_).
22
+
19
23
.. _@jadkik : https://github.com/jadkik
20
24
.. _@RazerM : https://github.com/RazerM
21
25
.. _#49 : https://github.com/pytest-dev/pytest-flask/issues/49
22
26
.. _#82 : https://github.com/pytest-dev/pytest-flask/pull/82
27
+ .. _#84 : https://github.com/pytest-dev/pytest-flask/pull/84
23
28
24
29
25
30
0.11.0 (compared to 0.10.0)
Original file line number Diff line number Diff line change @@ -177,21 +177,25 @@ def mimetype(request):
177
177
return request .param
178
178
179
179
180
+ def _make_accept_header (mimetype ):
181
+ return [('Accept' , mimetype )]
182
+
183
+
180
184
@pytest .fixture
181
185
def accept_mimetype (mimetype ):
182
- return [( 'Accept' , mimetype )]
186
+ return _make_accept_header ( mimetype )
183
187
184
188
185
189
@pytest .fixture
186
190
def accept_json (request ):
187
- return accept_mimetype ('application/json' )
191
+ return _make_accept_header ('application/json' )
188
192
189
193
190
194
@pytest .fixture
191
195
def accept_jsonp ():
192
- return accept_mimetype ('application/json-p' )
196
+ return _make_accept_header ('application/json-p' )
193
197
194
198
195
199
@pytest .fixture (params = ['*' , '*/*' ])
196
200
def accept_any (request ):
197
- return accept_mimetype (request .param )
201
+ return _make_accept_header (request .param )
Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ def test_something(app):
108
108
return
109
109
110
110
app = getfixturevalue (request , 'app' )
111
- options = request .keywords .get ('options' )
112
- if options is not None :
111
+ for options in request .node .iter_markers ('options' ):
113
112
for key , value in options .kwargs .items ():
114
113
monkeypatch .setitem (app .config , key .upper (), value )
115
114
Original file line number Diff line number Diff line change
1
+ pytest>=3.6
1
2
Flask
2
- Werkzeug>=0.7
3
+ Werkzeug>=0.7
You can’t perform that action at this time.
0 commit comments