diff options
| author | Gregor Gärtner <code@gregorgaertner.de> | 2022-09-24 11:29:58 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-08 08:07:38 +0200 |
| commit | f0c06f8ab7904e1fd082f2de57337f6c7e05f177 (patch) | |
| tree | 2073bfe1bb55350d9516f9a54ad7d9895a84ca48 /docs/topics/testing/tools.txt | |
| parent | d795259ea96004df0a2469246229a146307bcd2c (diff) | |
Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual().
Co-Authored-By: Michael Howitz <mh@gocept.com>
Diffstat (limited to 'docs/topics/testing/tools.txt')
| -rw-r--r-- | docs/topics/testing/tools.txt | 9 |
1 files changed, 7 insertions, 2 deletions
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 <skipping-tests>`. * The remaining specialized :meth:`assert* - <TransactionTestCase.assertQuerysetEqual>` methods. + <TransactionTestCase.assertQuerySetEqual>` 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 |
