1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +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

@@ -2365,6 +2365,7 @@ class AggregateAnnotationPruningTests(TestCase):
).aggregate(count=Count("id", filter=Q(id__in=[F("max_book_author"), 0])))
self.assertEqual(aggregates, {"count": 1})
@skipUnlessDBFeature("supports_select_union")
def test_aggregate_combined_queries(self):
# Combined queries could have members in their values select mask while
# others have them in their annotation mask which makes annotation