diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2020-07-04 09:41:40 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-04 23:13:21 +0200 |
| commit | 659a73bc0a2df9be856e23fcfc6cc66d0d1a35fd (patch) | |
| tree | 0515fc9f12325b33f78b65e3cd4b328b201e4cca | |
| parent | 4d9cd89acbb944e10b9000092069ba8e3a855957 (diff) | |
Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.
| -rw-r--r-- | docs/topics/testing/tools.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index eac4fa3ef7..a22428962a 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1651,10 +1651,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 |
