@@ -39,8 +39,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
39
39
"aggregation.tests.AggregateTestCase.test_grouped_annotation_in_group_by" ,
40
40
"aggregation.tests.AggregateTestCase.test_non_grouped_annotation_not_in_group_by" ,
41
41
"aggregation.tests.AggregateTestCase.test_values_annotation_with_expression" ,
42
- "aggregation.tests.AggregateTestCase.test_annotate_ordering" ,
43
- "aggregation.tests.AggregateTestCase.test_even_more_aggregate" ,
44
42
"annotations.tests.NonAggregateAnnotationTestCase.test_order_by_aggregate" ,
45
43
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
46
44
"ordering.tests.OrderingTests.test_default_ordering_does_not_affect_group_by" ,
@@ -72,6 +70,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
72
70
"db_functions.math.test_round.RoundTests.test_integer_with_negative_precision" ,
73
71
# Truncating in another timezone doesn't work becauase MongoDB converts
74
72
# the result back to UTC.
73
+ "aggregation.tests.AggregateTestCase.test_aggregation_default_using_date_from_database" ,
75
74
"db_functions.datetime.test_extract_trunc.DateFunctionWithTimeZoneTests.test_trunc_func_with_timezone" ,
76
75
"db_functions.datetime.test_extract_trunc.DateFunctionWithTimeZoneTests.test_trunc_timezone_applied_before_truncation" ,
77
76
# Length of null considered zero rather than null.
@@ -110,6 +109,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
110
109
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
111
110
# Manage empty result when the flag elide_empty is False
112
111
"aggregation.tests.AggregateTestCase.test_empty_result_optimization" ,
112
+ # Incorrect order: pipeline does not order by the right fields.
113
+ "aggregation.tests.AggregateTestCase.test_annotate_ordering" ,
114
+ "aggregation.tests.AggregateTestCase.test_even_more_aggregate" ,
113
115
}
114
116
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
115
117
_django_test_expected_failures_bitwise = {
@@ -138,7 +140,6 @@ def django_test_expected_failures(self):
138
140
"expressions.tests.BasicExpressionsTests.test_object_create_with_aggregate" ,
139
141
"expressions.tests.BasicExpressionsTests.test_object_create_with_f_expression_in_subquery" ,
140
142
# PI()
141
- "aggregation.tests.AggregateTestCase.test_aggregation_default_using_decimal_from_database" ,
142
143
"db_functions.math.test_round.RoundTests.test_decimal_with_precision" ,
143
144
"db_functions.math.test_round.RoundTests.test_float_with_precision" ,
144
145
},
@@ -471,6 +472,7 @@ def django_test_expected_failures(self):
471
472
"update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
472
473
},
473
474
"Test inspects query for SQL" : {
475
+ "aggregation.tests.AggregateAnnotationPruningTests.test_non_aggregate_annotation_pruned" ,
474
476
"aggregation.tests.AggregateAnnotationPruningTests.test_unreferenced_aggregate_annotation_pruned" ,
475
477
"aggregation.tests.AggregateAnnotationPruningTests.test_unused_aliased_aggregate_pruned" ,
476
478
"aggregation.tests.AggregateAnnotationPruningTests.test_referenced_aggregate_annotation_kept" ,
@@ -543,6 +545,7 @@ def django_test_expected_failures(self):
543
545
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_trunc_time_none" ,
544
546
},
545
547
"MongoDB can't annotate ($project) a function like PI()." : {
548
+ "aggregation.tests.AggregateTestCase.test_aggregation_default_using_decimal_from_database" ,
546
549
"db_functions.math.test_pi.PiTests.test" ,
547
550
},
548
551
"Can't cast from date to datetime without MongoDB interpreting the new value in UTC." : {
@@ -584,11 +587,8 @@ def django_test_expected_failures(self):
584
587
"Test not applicable for MongoDB's SQLCompiler." : {
585
588
"queries.test_iterator.QuerySetIteratorTests" ,
586
589
# Custom aggregations:
587
- "aggregation.tests.AggregateAnnotationPruningTests.test_non_aggregate_annotation_pruned" ,
588
590
"aggregation.tests.AggregateTestCase.test_add_implementation" ,
589
- "aggregation.tests.AggregateTestCase.test_aggregation_default_using_datetime_from_database" ,
590
591
"aggregation.tests.AggregateTestCase.test_multi_arg_aggregate" ,
591
- "aggregation.tests.AggregateTestCase.test_aggregation_default_using_date_from_database" ,
592
592
},
593
593
}
594
594
0 commit comments