MCPcopy
hub / github.com/django/django / test_ticket6074

Method test_ticket6074

tests/queries/tests.py:311–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

309 )
310
311 def test_ticket6074(self):
312 # Merging two empty result sets shouldn't leave a queryset with no
313 # constraints (which would match everything).
314 self.assertSequenceEqual(Author.objects.filter(Q(id__in=[])), [])
315 self.assertSequenceEqual(Author.objects.filter(Q(id__in=[]) | Q(id__in=[])), [])
316
317 def test_tickets_1878_2939(self):
318 self.assertEqual(Item.objects.values("creator").distinct().count(), 3)

Callers

nothing calls this directly

Calls 2

QClass · 0.90
filterMethod · 0.45

Tested by

no test coverage detected