1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #33348 -- Changed SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset.

Instead of taking a response object and a context name for
the form/formset, the two methods now take the object directly.
This commit is contained in:
Baptiste Mispelon
2021-12-10 12:22:23 +01:00
committed by Mariusz Felisiak
parent 1a7d75cf77
commit 50e1e7ef8e
8 changed files with 563 additions and 290 deletions

View File

@@ -97,6 +97,10 @@ details on these changes.
* The ``django.utils.timezone.utc`` alias to ``datetime.timezone.utc`` will be
removed.
* Passing a response object and a form/formset name to
``SimpleTestCase.assertFormError()`` and ``assertFormsetError()`` will no
longer be allowed.
.. _deprecation-removed-in-4.1:
4.1