#31235: assertQuerysetEqual cannot compare querysets directly.
-------------------------------------+-------------------------------------
Reporter: Peter Inglesby | Owner: Hasan
| Ramezani
Type: New feature | Status: assigned
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Hasan Ramezani):
Mariusz:
I rebased the PR and changed a lot of assertions and remove `repr` from
`assertQuerysetEqual`.
There are some assertions that are using `repr`. most of them are for
models that use more than one field in `__str__`.
like:
* https://github.com/django/django/pull/13557/files#diff-
ad6ec549eed244cc16532a3944710bfee97faeba6e3d21fbea58a5cb544254d2R1013
* https://github.com/django/django/pull/13557/files#diff-
ad3486daf49a0018f6d9202fbdaf3392dda74e2543decf9bdc43f37d2ebec8b2R221
I think we can keep them as is. what do you think?
--
Ticket URL: <https://code.djangoproject.com/ticket/31235#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.21b22e69c3b6cc771ce1cdfa9174f5db%40djangoproject.com.