mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.
This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
parent
13b6fff117
commit
3f7b327562
39 changed files with 1447 additions and 1801 deletions
|
@ -246,7 +246,10 @@ class InlineFormsetTests(TestCase):
|
|||
formset.save()
|
||||
self.assertQuerysetEqual(
|
||||
dalnet.host_set.order_by("hostname"),
|
||||
["<Host: matrix.de.eu.dal.net>", "<Host: tranquility.hub.dal.net>"]
|
||||
Host.objects.filter(hostname__in=[
|
||||
'matrix.de.eu.dal.net',
|
||||
'tranquility.hub.dal.net',
|
||||
]).order_by('hostname'),
|
||||
)
|
||||
|
||||
def test_initial_data(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue