From eae78a363b94640cd17ddd2b3133bf1a790bca72 Mon Sep 17 00:00:00 2001 From: Jacob Walls <jacobtylerwalls@gmail.com> Date: Sat, 4 Jul 2020 09:41:40 -0400 Subject: [PATCH] [3.1.x] Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works. Backport of 659a73bc0a2df9be856e23fcfc6cc66d0d1a35fd from master --- docs/topics/testing/tools.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index dd9fa5eb1c..887953f40c 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1655,10 +1655,11 @@ your test suite. Asserts that a queryset ``qs`` returns a particular list of values ``values``. - The comparison of the contents of ``qs`` and ``values`` is performed using - the function ``transform``; by default, this means that the ``repr()`` of - each value is compared. Any other callable can be used if ``repr()`` doesn't - provide a unique or helpful comparison. + The comparison of the contents of ``qs`` and ``values`` is performed by + applying ``transform`` to ``qs``. By default, this means that the + ``repr()`` of each value in ``qs`` is compared to the ``values``. Any other + callable can be used if ``repr()`` doesn't provide a unique or helpful + comparison. By default, the comparison is also ordering dependent. If ``qs`` doesn't provide an implicit ordering, you can set the ``ordered`` parameter to