diff options
Diffstat (limited to 'docs/topics/testing/tools.txt')
| -rw-r--r-- | docs/topics/testing/tools.txt | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index a9373ff108..e9b12d94f0 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -158,10 +158,6 @@ Use the ``django.test.Client`` class to make requests. Once you have a ``Client`` instance, you can call any of the following methods: - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.get(path, data=None, follow=False, secure=False, *, headers=None, **extra) Makes a GET request on the provided ``path`` and returns a ``Response`` @@ -234,10 +230,6 @@ Use the ``django.test.Client`` class to make requests. If you set ``secure`` to ``True`` the client will emulate an HTTPS request. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.post(path, data=None, content_type=MULTIPART_CONTENT, follow=False, secure=False, *, headers=None, **extra) Makes a POST request on the provided ``path`` and returns a @@ -351,10 +343,6 @@ Use the ``django.test.Client`` class to make requests. If you set ``secure`` to ``True`` the client will emulate an HTTPS request. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.head(path, data=None, follow=False, secure=False, *, headers=None, **extra) Makes a HEAD request on the provided ``path`` and returns a @@ -362,10 +350,6 @@ Use the ``django.test.Client`` class to make requests. including the ``follow``, ``secure``, ``headers``, and ``extra`` parameters, except it does not return a message body. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.options(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes an OPTIONS request on the provided ``path`` and returns a @@ -377,10 +361,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.put(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes a PUT request on the provided ``path`` and returns a @@ -392,10 +372,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.patch(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes a PATCH request on the provided ``path`` and returns a @@ -404,10 +380,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.delete(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes a DELETE request on the provided ``path`` and returns a @@ -419,10 +391,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.trace(path, follow=False, secure=False, *, headers=None, **extra) Makes a TRACE request on the provided ``path`` and returns a @@ -435,10 +403,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.login(**credentials) .. method:: Client.alogin(**credentials) @@ -2041,10 +2005,6 @@ test client, with the following exceptions: >>> c = AsyncClient() >>> c.get("/customers/details/", {"name": "fred", "age": 7}, ACCEPT="application/json") -.. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. versionchanged:: 5.0 Support for the ``follow`` parameter was added to the ``AsyncClient``. |
