[3.2.x] Fixed #32438 -- Fixed typo in docs/topics/testing/tools.txt.
Backport of e412b288455dd3ea6f1d65c8ec5d01751e489976 from master
This commit is contained in:
parent
f2d955dbe4
commit
bfc429d993
@ -112,12 +112,12 @@ Use the ``django.test.Client`` class to make requests.
|
|||||||
.. class:: Client(enforce_csrf_checks=False, json_encoder=DjangoJSONEncoder, **defaults)
|
.. class:: Client(enforce_csrf_checks=False, json_encoder=DjangoJSONEncoder, **defaults)
|
||||||
|
|
||||||
It requires no arguments at time of construction. However, you can use
|
It requires no arguments at time of construction. However, you can use
|
||||||
keywords arguments to specify some default headers. For example, this will
|
keyword arguments to specify some default headers. For example, this will
|
||||||
send a ``User-Agent`` HTTP header in each request::
|
send a ``User-Agent`` HTTP header in each request::
|
||||||
|
|
||||||
>>> c = Client(HTTP_USER_AGENT='Mozilla/5.0')
|
>>> c = Client(HTTP_USER_AGENT='Mozilla/5.0')
|
||||||
|
|
||||||
The values from the ``extra`` keywords arguments passed to
|
The values from the ``extra`` keyword arguments passed to
|
||||||
:meth:`~django.test.Client.get()`,
|
:meth:`~django.test.Client.get()`,
|
||||||
:meth:`~django.test.Client.post()`, etc. have precedence over
|
:meth:`~django.test.Client.post()`, etc. have precedence over
|
||||||
the defaults passed to the class constructor.
|
the defaults passed to the class constructor.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user