summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-13 08:31:30 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-17 11:49:15 +0100
commit71d1203b07d3092062aa9ebc0ab198abfc144d54 (patch)
tree8ed6e2818f1db31e1f064f8a4317ca08ed360324 /docs
parentd6816bff73b37af05c968c009419c7c608e37307 (diff)
Refs #33348 -- Removed support for passing response object and form/formset name to SimpleTestCase.assertFormError()/assertFormSetError().
Per deprecation timeline.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/5.0.txt4
-rw-r--r--docs/topics/testing/tools.txt12
2 files changed, 4 insertions, 12 deletions
diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt
index 9ae70cbf75..87755fdfc1 100644
--- a/docs/releases/5.0.txt
+++ b/docs/releases/5.0.txt
@@ -334,3 +334,7 @@ to remove usage of these features.
* The ``django.utils.timezone.utc`` alias to ``datetime.timezone.utc`` is
removed.
+
+* Passing a response object and a form/formset name to
+ ``SimpleTestCase.assertFormError()`` and ``assertFormSetError()`` is no
+ longer allowed.
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 7c8dd39cfb..f3e5ec982f 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1601,12 +1601,6 @@ your test suite.
which means that ``errors='error message'`` is the same as
``errors=['error message']``.
- .. deprecated:: 4.1
-
- Support for passing a response object and a form name to
- ``assertFormError()`` is deprecated and will be removed in Django 5.0.
- Use the form instance directly instead.
-
.. method:: SimpleTestCase.assertFormSetError(formset, form_index, field, errors, msg_prefix='')
Asserts that the ``formset`` raises the provided list of errors when
@@ -1624,12 +1618,6 @@ your test suite.
``field`` and ``errors`` have the same meaning as the parameters to
``assertFormError()``.
- .. deprecated:: 4.1
-
- Support for passing a response object and a formset name to
- ``assertFormSetError()`` is deprecated and will be removed in Django
- 5.0. Use the formset instance directly instead.
-
.. deprecated:: 4.2
The ``assertFormsetError()`` assertion method is deprecated. Use