From f0c06f8ab7904e1fd082f2de57337f6c7e05f177 Mon Sep 17 00:00:00 2001 From: Gregor Gärtner Date: Sat, 24 Sep 2022 11:29:58 +0100 Subject: Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). Co-Authored-By: Michael Howitz --- docs/topics/testing/tools.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/topics/testing') diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 4e2003acde..0eb6fee113 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -787,7 +787,7 @@ add some database-specific features: * Database :attr:`~TransactionTestCase.fixtures`. * Test :ref:`skipping based on database backend features `. * The remaining specialized :meth:`assert* - ` methods. + ` methods. Django's :class:`TestCase` class is a more commonly used subclass of ``TransactionTestCase`` that makes use of database transaction facilities @@ -1777,7 +1777,7 @@ your test suite. Output in case of error can be customized with the ``msg`` argument. -.. method:: TransactionTestCase.assertQuerysetEqual(qs, values, transform=None, ordered=True, msg=None) +.. method:: TransactionTestCase.assertQuerySetEqual(qs, values, transform=None, ordered=True, msg=None) Asserts that a queryset ``qs`` matches a particular iterable of values ``values``. @@ -1794,6 +1794,11 @@ your test suite. Output in case of error can be customized with the ``msg`` argument. + .. deprecated:: 4.2 + + The ``assertQuerysetEqual()`` assertion method is deprecated. Use + ``assertQuerySetEqual()`` instead. + .. method:: TransactionTestCase.assertNumQueries(num, func, *args, **kwargs) Asserts that when ``func`` is called with ``*args`` and ``**kwargs`` that -- cgit v1.3