Opened 6 months ago

Last modified 6 months ago

#31235 assigned New feature

assertQuerysetEqual cannot compare querysets directly.

Reported by: Peter Inglesby Owned by: Peter Inglesby
Component: Testing framework Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

As discussed briefly on django-dev [0] I'd like to modify assertQuerysetEqual so that assertQuerysetEqual(qs1, qs2) works.

[0] https://groups.google.com/forum/?#!msg/django-developers/wdO0e0835EY/X_D9gVe_EwAJ

Change History (2)

comment:1 Changed 6 months ago by Simon Charette

Triage Stage: UnreviewedAccepted

I think the suggested approach makes sense, I suggest we deprecate the repr default entirely through a deprecation period.

comment:2 Changed 6 months ago by felixxm

Has patch: set
Owner: changed from nobody to Peter Inglesby
Patch needs improvement: set
Status: newassigned
Summary: assertQuerysetEqual cannot compare querysets directlyassertQuerysetEqual cannot compare querysets directly.
Version: 3.0master
Note: See TracTickets for help on using tickets.
Back to Top