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:48:48 +0200 |
| commit | eae78a363b94640cd17ddd2b3133bf1a790bca72 (patch) | |
| tree | 1b09c3385432a44423debc6ce46e0f3e452e5dea /docs | |
| parent | 7598ba01aa2b0b48ac006aea6d218f77eb949061 (diff) | |
[3.1.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.txt | 9 |
1 files 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 |
