diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/test/client.py b/django/test/client.py index 4a0b6b45f4..b4c091aa5c 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -547,6 +547,8 @@ class AsyncRequestFactory(RequestFactory): follow = extra.pop('follow', None) if follow is not None: s['follow'] = follow + if query_string := extra.pop('QUERY_STRING', None): + s['query_string'] = query_string s['headers'] += [ (key.lower().encode('ascii'), value.encode('latin1')) for key, value in extra.items() |
