summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-11 09:57:44 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-18 22:12:40 +0200
commit295467c04ab4c26a1a9d3798b1e941003fa116cf (patch)
treeeac57d86bd2c1664b63d17a4325cfffbf720ae44 /docs/topics/testing
parent590a31eb105292510ce94adebc85d691b30f49ca (diff)
Removed versionadded/changed annotations for 4.2.
This also removes remaining versionadded/changed annotations for older versions.
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/advanced.txt8
-rw-r--r--docs/topics/testing/overview.txt2
-rw-r--r--docs/topics/testing/tools.txt40
3 files changed, 0 insertions, 50 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 54b9d7d133..fda77e7661 100644
--- a/docs/topics/testing/advanced.txt
+++ b/docs/topics/testing/advanced.txt
@@ -32,10 +32,6 @@ restricted subset of the test client API:
attributes must be supplied by the test itself if required
for the view to function properly.
-.. versionchanged:: 4.2
-
- The ``headers`` parameter was added.
-
Example
-------
@@ -89,10 +85,6 @@ difference being that it returns ``ASGIRequest`` instances rather than
Arbitrary keyword arguments in ``defaults`` are added directly into the ASGI
scope.
-.. versionchanged:: 4.2
-
- The ``headers`` parameter was added.
-
Testing class-based views
=========================
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index 5dbe46ceb2..30f4a75edc 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -381,8 +381,6 @@ time to run tests.
Avoiding disk access for media files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. versionadded:: 4.2
-
The :class:`~django.core.files.storage.InMemoryStorage` is a convenient way to
prevent disk access for media files. All data is kept in memory, then it gets
discarded after tests run.
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``.