From 40ec39e521cf1d21c2b63351b00aba1ec7bb4157 Mon Sep 17 00:00:00 2001 From: Frank Yu Date: Sat, 19 Jun 2021 23:23:12 +0800 Subject: [PATCH] Improve the code example in testing docs --- docs/testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing.rst b/docs/testing.rst index 2fedc600..b98957b0 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -333,7 +333,7 @@ happen. With Flask 0.4 this is possible by using the with app.test_client() as c: rv = c.get('/?tequila=42') - assert request.args['tequila'] == '42' + assert flask.request.args['tequila'] == '42' If you were to use just the :meth:`~flask.Flask.test_client` without the ``with`` block, the ``assert`` would fail with an error because `request`