From 71d1203b07d3092062aa9ebc0ab198abfc144d54 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 13 Jan 2023 08:31:30 +0100 Subject: Refs #33348 -- Removed support for passing response object and form/formset name to SimpleTestCase.assertFormError()/assertFormSetError(). Per deprecation timeline. --- docs/releases/5.0.txt | 4 ++++ docs/topics/testing/tools.txt | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'docs') 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 -- cgit v1.3