1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Added supports_select_union skips in queries and aggregation tests.

This commit is contained in:
Tim Graham
2024-08-20 10:29:35 -04:00
committed by nessita
parent cdcd604ef8
commit 6a85c888bf
3 changed files with 7 additions and 1 deletions

View File

@@ -1375,6 +1375,7 @@ class Queries1Tests(TestCase):
self.assertCountEqual(items_after, [self.i2, self.i3, self.i4])
self.assertCountEqual(items_before, items_after)
@skipUnlessDBFeature("supports_select_union")
def test_union_values_subquery(self):
items = Item.objects.filter(creator=OuterRef("pk"))
item_authors = Author.objects.annotate(is_creator=Exists(items)).order_by()