mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #14611 -- Added query_params argument to RequestFactory and Client classes.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e76cc93b01
commit
a03593967f
@@ -1197,6 +1197,10 @@ class QueryStringTests(SimpleTestCase):
|
||||
self.assertEqual(response.context["get-foo"], "whiz")
|
||||
self.assertIsNone(response.context["post-foo"])
|
||||
|
||||
response = self.client.post("/request_data/", query_params={"foo": "whiz"})
|
||||
self.assertEqual(response.context["get-foo"], "whiz")
|
||||
self.assertIsNone(response.context["post-foo"])
|
||||
|
||||
# POST data provided in the URL augments actual form data
|
||||
response = self.client.post("/request_data/?foo=whiz", data={"foo": "bang"})
|
||||
self.assertEqual(response.context["get-foo"], "whiz")
|
||||
|
||||
Reference in New Issue
Block a user