summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2020-07-04 09:41:40 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-07-08 08:26:11 +0200
commit9141841cca505b9f6b605834dc5adb3e5269fe72 (patch)
tree225d93040453f0e5c28faaaa5a1a6b6fee3f1058 /docs
parent8f750bc295c8a8d3415cc35f4ae0f6b5bfe77bf2 (diff)
[3.0.x] Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.
Backport of 659a73bc0a2df9be856e23fcfc6cc66d0d1a35fd from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/tools.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 57f2e6b772..4f63ab9031 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1687,10 +1687,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