@@ -40,6 +40,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
40
40
"ordering.tests.OrderingTests.test_default_ordering" ,
41
41
"ordering.tests.OrderingTests.test_default_ordering_by_f_expression" ,
42
42
"ordering.tests.OrderingTests.test_default_ordering_does_not_affect_group_by" ,
43
+ "ordering.tests.OrderingTests.test_order_by_constant_value" ,
43
44
"ordering.tests.OrderingTests.test_order_by_expr_query_reuse" ,
44
45
"ordering.tests.OrderingTests.test_order_by_expression_ref" ,
45
46
"ordering.tests.OrderingTests.test_order_by_f_expression" ,
@@ -87,7 +88,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
87
88
# Wrong results in queries with multiple tables.
88
89
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_aggregate_with_m2o" ,
89
90
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_reverse_m2m" ,
91
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_with_m2m" ,
90
92
"annotations.tests.NonAggregateAnnotationTestCase.test_chaining_annotation_filter_with_m2m" ,
93
+ "annotations.tests.NonAggregateAnnotationTestCase.test_mti_annotations" ,
91
94
"lookup.tests.LookupTests.test_lookup_collision" ,
92
95
"expressions.test_queryset_values.ValuesExpressionsTests.test_values_list_expression" ,
93
96
"expressions.test_queryset_values.ValuesExpressionsTests.test_values_list_expression_flat" ,
@@ -102,6 +105,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
102
105
# pymongo.errors.OperationFailure: $multiply only supports numeric
103
106
# types, not date. (should be wrapped in DatabaseError).
104
107
"expressions.tests.FTimeDeltaTests.test_invalid_operator" ,
108
+ # alias().order_by() doesn't work.
109
+ "annotations.tests.AliasTests.test_order_by_alias" ,
110
+ # annotate() + values_list() + order_by() loses annotated value.
111
+ "expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by" ,
105
112
}
106
113
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
107
114
_django_test_expected_failures_bitwise = {
@@ -280,27 +287,18 @@ def django_test_expected_failures(self):
280
287
"annotations.tests.NonAggregateAnnotationTestCase.test_combined_f_expression_annotation_with_aggregation" ,
281
288
"annotations.tests.NonAggregateAnnotationTestCase.test_full_expression_annotation_with_aggregation" ,
282
289
"annotations.tests.NonAggregateAnnotationTestCase.test_grouping_by_q_expression_annotation" ,
290
+ "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_aggregate" ,
283
291
"annotations.tests.NonAggregateAnnotationTestCase.test_q_expression_annotation_with_aggregation" ,
284
292
"defer_regress.tests.DeferRegressionTest.test_basic" ,
285
293
"defer_regress.tests.DeferRegressionTest.test_defer_annotate_select_related" ,
286
294
"defer_regress.tests.DeferRegressionTest.test_ticket_16409" ,
287
295
"expressions.tests.BasicExpressionsTests.test_aggregate_subquery_annotation" ,
288
296
"expressions.tests.FieldTransformTests.test_month_aggregation" ,
289
297
"expressions_case.tests.CaseDocumentationExamples.test_conditional_aggregation_example" ,
298
+ "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
290
299
# Func not implemented.
291
300
"annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions" ,
292
301
"annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions_can_ref_other_functions" ,
293
- # FieldDoesNotExist with ordering.
294
- "annotations.tests.AliasTests.test_order_by_alias" ,
295
- "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_with_m2m" ,
296
- "annotations.tests.NonAggregateAnnotationTestCase.test_mti_annotations" ,
297
- "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_aggregate" ,
298
- "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_annotation" ,
299
- "expressions.tests.NegatedExpressionTests.test_filter" ,
300
- "expressions_case.tests.CaseExpressionTests.test_annotate_values_not_in_order_by" ,
301
- "expressions_case.tests.CaseExpressionTests.test_order_by_conditional_implicit" ,
302
- "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
303
- "ordering.tests.OrderingTests.test_order_by_constant_value" ,
304
302
},
305
303
"Exists is not supported on MongoDB." : {
306
304
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query" ,
0 commit comments