summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-12 16:17:09 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commit810edfd7428e12bd640573112c6c1a024ac33da2 (patch)
treec6dd06c80384f51aa373dfff5e0285d753a8830f /docs/topics/testing
parent9b5ad4056ccf9ff7ea548f72d28eb66c1b4f84cc (diff)
Removed versionadded/changed annotations for 5.1.
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/tools.txt59
2 files changed, 0 insertions, 67 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 6b03f0f82b..1b0c172ef9 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:: 5.1
-
- The ``query_params`` 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:: 5.1
-
- The ``query_params`` parameter was added.
-
Testing class-based views
=========================
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index dba2a9cce8..a03ad7da78 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.
The ``json_encoder`` argument allows setting a custom JSON encoder for
the JSON serialization that's described in :meth:`post`.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
Once you have a ``Client`` instance, you can call any of the following
methods:
@@ -241,10 +237,6 @@ Use the ``django.test.Client`` class to make requests.
If you set ``secure`` to ``True`` the client will emulate an HTTPS
request.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.post(path, data=None, content_type=MULTIPART_CONTENT, follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes a POST request on the provided ``path`` and returns a
@@ -360,10 +352,6 @@ Use the ``django.test.Client`` class to make requests.
If you set ``secure`` to ``True`` the client will emulate an HTTPS
request.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.head(path, data=None, follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes a HEAD request on the provided ``path`` and returns a
@@ -371,10 +359,6 @@ Use the ``django.test.Client`` class to make requests.
including the ``follow``, ``secure``, ``headers``, ``query_params``,
and ``extra`` parameters, except it does not return a message body.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.options(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes an OPTIONS request on the provided ``path`` and returns a
@@ -386,10 +370,6 @@ Use the ``django.test.Client`` class to make requests.
The ``follow``, ``secure``, ``headers``, ``query_params``, and
``extra`` parameters act the same as for :meth:`Client.get`.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.put(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes a PUT request on the provided ``path`` and returns a
@@ -401,10 +381,6 @@ Use the ``django.test.Client`` class to make requests.
The ``follow``, ``secure``, ``headers``, ``query_params``, and
``extra`` parameters act the same as for :meth:`Client.get`.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.patch(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes a PATCH request on the provided ``path`` and returns a
@@ -413,10 +389,6 @@ Use the ``django.test.Client`` class to make requests.
The ``follow``, ``secure``, ``headers``, ``query_params``, and
``extra`` parameters act the same as for :meth:`Client.get`.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.delete(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes a DELETE request on the provided ``path`` and returns a
@@ -428,10 +400,6 @@ Use the ``django.test.Client`` class to make requests.
The ``follow``, ``secure``, ``headers``, ``query_params``, and
``extra`` parameters act the same as for :meth:`Client.get`.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.trace(path, follow=False, secure=False, *, headers=None, query_params=None, **extra)
Makes a TRACE request on the provided ``path`` and returns a
@@ -444,10 +412,6 @@ Use the ``django.test.Client`` class to make requests.
The ``follow``, ``secure``, ``headers``, ``query_params``, and
``extra`` parameters act the same as for :meth:`Client.get`.
- .. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
.. method:: Client.login(**credentials)
.. method:: Client.alogin(**credentials)
@@ -1548,11 +1512,6 @@ LOCALE_PATHS, LANGUAGE_CODE Default translation and loaded translations
STATIC_ROOT, STATIC_URL, STORAGES Storages configuration
================================= ========================
-.. versionchanged:: 5.1
-
- Resetting the default renderer when the ``FORM_RENDERER`` setting is
- changed was added.
-
Isolating apps
--------------
@@ -1740,10 +1699,6 @@ your test suite.
attribute ordering is not significant. See
:meth:`~SimpleTestCase.assertHTMLEqual` for more details.
- .. versionchanged:: 5.1
-
- In older versions, error messages didn't contain the response content.
-
.. method:: SimpleTestCase.assertNotContains(response, text, status_code=200, msg_prefix='', html=False)
Asserts that a :class:`response <django.http.HttpResponse>` produced the
@@ -1756,10 +1711,6 @@ your test suite.
attribute ordering is not significant. See
:meth:`~SimpleTestCase.assertHTMLEqual` for more details.
- .. versionchanged:: 5.1
-
- In older versions, error messages didn't contain the response content.
-
.. method:: SimpleTestCase.assertTemplateUsed(response, template_name, msg_prefix='', count=None)
Asserts that the template with the given name was used in rendering the
@@ -1896,14 +1847,8 @@ your test suite.
Whitespace in most cases is ignored, and attribute ordering is not
significant. See :meth:`~SimpleTestCase.assertHTMLEqual` for more details.
- .. versionchanged:: 5.1
-
- In older versions, error messages didn't contain the ``haystack``.
-
.. method:: SimpleTestCase.assertNotInHTML(needle, haystack, msg_prefix="")
- .. versionadded:: 5.1
-
Asserts that the HTML fragment ``needle`` is *not* contained in the
``haystack``.
@@ -2058,10 +2003,6 @@ test client, with the following exceptions:
>>> c = AsyncClient()
>>> c.get("/customers/details/", {"name": "fred", "age": 7}, ACCEPT="application/json")
-.. versionchanged:: 5.1
-
- The ``query_params`` argument was added.
-
Using ``AsyncClient`` any method that makes a request must be awaited::
async def test_my_thing(self):