@@ -38,6 +38,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
38
38
"expressions.tests.NegatedExpressionTests.test_filter" ,
39
39
"expressions_case.tests.CaseExpressionTests.test_order_by_conditional_implicit" ,
40
40
# NotSupportedError: order_by() expression not supported.
41
+ # Lookup in order_by() not supported:
42
+ # argument of type '<database function>' is not iterable
43
+ "aggregation.tests.AggregateTestCase.test_aggregation_order_by_not_selected_annotation_values" ,
41
44
"db_functions.comparison.test_coalesce.CoalesceTests.test_ordering" ,
42
45
"db_functions.tests.FunctionTests.test_nested_function_ordering" ,
43
46
"db_functions.text.test_length.LengthTests.test_ordering" ,
@@ -101,6 +104,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
101
104
"queries.test_explain.ExplainUnsupportedTests.test_message" ,
102
105
# filter() on related model + update() doesn't work.
103
106
"queries.tests.Queries5Tests.test_ticket9848" ,
107
+ # Variance is not implemented in mongo as an aggregation,
108
+ # we should transform it into StdDev * 2.
109
+ "aggregation.test_filter_argument.FilteredAggregateTests.test_filtered_numerical_aggregates" ,
110
+ # Sum returns 0 instead of None in mongodb.
111
+ "aggregation.test_filter_argument.FilteredAggregateTests.test_plain_annotate" ,
112
+ "aggregation.tests.AggregateTestCase.test_annotation_expressions" ,
113
+ "aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
104
114
}
105
115
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
106
116
_django_test_expected_failures_bitwise = {
@@ -276,6 +286,7 @@ def django_test_expected_failures(self):
276
286
"timezones.tests.NewDatabaseTests.test_query_annotation" ,
277
287
},
278
288
"Exists is not supported on MongoDB." : {
289
+ "aggregation.test_filter_argument.FilteredAggregateTests.test_filtered_aggregate_ref_multiple_subquery_annotation" ,
279
290
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query" ,
280
291
"delete_regress.tests.DeleteTests.test_self_reference_with_through_m2m_at_second_level" ,
281
292
"expressions.tests.BasicExpressionsTests.test_annotation_with_deeply_nested_outerref" ,
@@ -320,6 +331,14 @@ def django_test_expected_failures(self):
320
331
"queries.tests.Ticket22429Tests.test_ticket_22429" ,
321
332
},
322
333
"Subquery is not supported on MongoDB." : {
334
+ "aggregation.tests.AggregateAnnotationPruningTests.test_referenced_composed_subquery_requires_wrapping" ,
335
+ "aggregation.tests.AggregateAnnotationPruningTests.test_referenced_subquery_requires_wrapping" ,
336
+ "aggregation.tests.AggregateTestCase.test_aggregation_nested_subquery_outerref" ,
337
+ "aggregation.tests.AggregateTestCase.test_aggregation_subquery_annotation" ,
338
+ "aggregation.tests.AggregateTestCase.test_aggregation_subquery_annotation_multivalued" ,
339
+ "aggregation.tests.AggregateTestCase.test_aggregation_subquery_annotation_related_field" ,
340
+ "aggregation.tests.AggregateTestCase.test_aggregation_subquery_annotation_values" ,
341
+ "aggregation.tests.AggregateTestCase.test_aggregation_subquery_annotation_values_collision" ,
323
342
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_filter_with_subquery" ,
324
343
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_subquery_outerref_transform" ,
325
344
"annotations.tests.NonAggregateAnnotationTestCase.test_empty_queryset_annotation" ,
@@ -496,6 +515,7 @@ def django_test_expected_failures(self):
496
515
"queries.tests.Queries6Tests.test_col_alias_quoted" ,
497
516
},
498
517
"Test executes raw SQL." : {
518
+ "aggregation.tests.AggregateTestCase.test_coalesced_empty_result_set" ,
499
519
"annotations.tests.NonAggregateAnnotationTestCase.test_raw_sql_with_inherited_field" ,
500
520
"delete_regress.tests.DeleteLockingTest.test_concurrent_delete" ,
501
521
"expressions.tests.BasicExpressionsTests.test_annotate_values_filter" ,
@@ -587,6 +607,7 @@ def django_test_expected_failures(self):
587
607
"model_fields.test_jsonfield.TestQuerying.test_none_key_exclude" ,
588
608
},
589
609
"Randomized ordering isn't supported by MongoDB." : {
610
+ "aggregation.tests.AggregateTestCase.test_aggregation_random_ordering" ,
590
611
"ordering.tests.OrderingTests.test_random_ordering" ,
591
612
},
592
613
"Queries without a collection aren't supported on MongoDB." : {
@@ -602,6 +623,7 @@ def django_test_expected_failures(self):
602
623
"aggregation.tests.AggregateAnnotationPruningTests.test_non_aggregate_annotation_pruned" ,
603
624
"aggregation.tests.AggregateTestCase.test_add_implementation" ,
604
625
"aggregation.tests.AggregateTestCase.test_aggregation_default_using_datetime_from_database" ,
626
+ "aggregation.tests.AggregateTestCase.test_multi_arg_aggregate" ,
605
627
# SQL custom values.
606
628
"aggregation.tests.AggregateTestCase.test_aggregation_default_using_date_from_database" ,
607
629
# No sql generate
@@ -613,7 +635,17 @@ def django_test_expected_failures(self):
613
635
"aggregation.tests.AggregateAnnotationPruningTests.test_referenced_aggregate_annotation_kept" ,
614
636
# Using a QuerySet in annotate() is not supported on MongoDB
615
637
"aggregation.tests.AggregateTestCase.test_group_by_subquery_annotation" ,
616
- }
638
+ # Query set with annotate not supported.
639
+ "aggregation.tests.AggregateTestCase.test_group_by_reference_subquery" ,
640
+ "aggregation.tests.AggregateTestCase.test_filter_in_subquery_or_aggregation" ,
641
+ # Exists is not supported in mongodb
642
+ "aggregation.tests.AggregateTestCase.test_aggregation_exists_multivalued_outeref" ,
643
+ "aggregation.tests.AggregateTestCase.test_group_by_exists_annotation" ,
644
+ "aggregation.tests.AggregateTestCase.test_exists_none_with_aggregate" ,
645
+ "aggregation.tests.AggregateTestCase.test_exists_extra_where_with_aggregate" ,
646
+ # Queryset dates not supported
647
+ "aggregation.tests.AggregateTestCase.test_dates_with_aggregation" ,
648
+ },
617
649
}
618
650
619
651
@cached_property
0 commit comments