Skip to content

Commit f425c11

Browse files
authored
Merge pull request #4972 from pallets/docs-push-reqctx
fix test client arg for query string example
2 parents 129568f + ba2b309 commit f425c11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/reqcontext.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ everything that runs in the block will have access to :data:`request`,
6969
populated with your test data. ::
7070

7171
def generate_report(year):
72-
format = request.args.get('format')
72+
format = request.args.get("format")
7373
...
7474

7575
with app.test_request_context(
76-
'/make_report/2017', data={'format': 'short'}):
76+
"/make_report/2017", query_string={"format": "short"}
77+
):
7778
generate_report()
7879

7980
If you see that error somewhere else in your code not related to

0 commit comments

Comments
 (0)