Skip to content

Commit 1797ee2

Browse files
committed
Use new iter_markers API
1 parent 0b6be5a commit 1797ee2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_flask/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ def test_something(app):
108108
return
109109

110110
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'):
113112
for key, value in options.kwargs.items():
114113
monkeypatch.setitem(app.config, key.upper(), value)
115114

0 commit comments

Comments
 (0)