@@ -42,6 +42,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
42
42
# tuple index out of range in process_rhs()
43
43
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
44
44
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset" ,
45
+ # Regex lookup doesn't work on json fields.
46
+ "model_fields.test_jsonfield.TestQuerying.test_icontains"
45
47
# MongoDB gives the wrong result of log(number, base) when base is a
46
48
# fractional Decimal: https://jira.mongodb.org/browse/SERVER-91223
47
49
"db_functions.math.test_log.LogTests.test_decimal" ,
@@ -57,6 +59,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
57
59
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery" ,
58
60
# Length of null considered zero rather than null.
59
61
"db_functions.text.test_length.LengthTests.test_basic" ,
62
+ # Django-mongo does not differentiate well between joins and key transforms.
63
+ "model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder" ,
64
+ "model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform" ,
65
+ "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform" ,
60
66
}
61
67
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
62
68
_django_test_expected_failures_bitwise = {
@@ -223,6 +229,8 @@ def django_test_expected_failures(self):
223
229
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_trunc_subquery_with_parameters" ,
224
230
"expressions_case.tests.CaseExpressionTests.test_in_subquery" ,
225
231
"lookup.tests.LookupQueryingTests.test_filter_subquery_lhs" ,
232
+ "model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery" ,
233
+ "model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup" ,
226
234
# Invalid $project :: caused by :: Unknown expression $count,
227
235
"annotations.tests.NonAggregateAnnotationTestCase.test_combined_expression_annotation_with_aggregation" ,
228
236
"annotations.tests.NonAggregateAnnotationTestCase.test_combined_f_expression_annotation_with_aggregation" ,
@@ -244,7 +252,7 @@ def django_test_expected_failures(self):
244
252
"expressions_case.tests.CaseExpressionTests.test_order_by_conditional_implicit" ,
245
253
# annotate().filter().count() gives incorrect results.
246
254
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_extract_year_exact_lookup" ,
247
- "model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery" ,
255
+ # FieldDoesNotExist with ordering.
248
256
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count" ,
249
257
"model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup" ,
250
258
},
@@ -330,6 +338,7 @@ def django_test_expected_failures(self):
330
338
"lookup.tests.LookupTests.test_lookup_rhs" ,
331
339
"lookup.tests.LookupTests.test_isnull_non_boolean_value" ,
332
340
"model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk" ,
341
+ "model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression" ,
333
342
"model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys" ,
334
343
"timezones.tests.LegacyDatabaseTests.test_query_annotation" ,
335
344
"timezones.tests.NewDatabaseTests.test_query_annotation" ,
@@ -341,10 +350,6 @@ def django_test_expected_failures(self):
341
350
"update.tests.SimpleTest.test_empty_update_with_inheritance" ,
342
351
"update.tests.SimpleTest.test_foreign_key_update_with_id" ,
343
352
"update.tests.SimpleTest.test_nonempty_update_with_inheritance" ,
344
- "model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression" ,
345
- "model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder" ,
346
- "model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform" ,
347
- "model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform" ,
348
353
},
349
354
"Test inspects query for SQL" : {
350
355
"lookup.tests.LookupTests.test_in_ignore_none" ,
0 commit comments