@@ -41,7 +41,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
41
41
# tuple index out of range in process_rhs()
42
42
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
43
43
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset" ,
44
- # Regex lookup doesn't work on json fields.
44
+ # Regex lookup doesn't work on JSONField:
45
+ # Unsupported conversion from array to string in $convert
45
46
"model_fields.test_jsonfield.TestQuerying.test_icontains" ,
46
47
# MongoDB gives the wrong result of log(number, base) when base is a
47
48
# fractional Decimal: https://jira.mongodb.org/browse/SERVER-91223
@@ -58,7 +59,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
58
59
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery" ,
59
60
# Length of null considered zero rather than null.
60
61
"db_functions.text.test_length.LengthTests.test_basic" ,
61
- # Django-mongo does not differentiate well between joins and key transforms.
62
+ # Key transforms are incorrectly treated as joins:
63
+ # Ordering can't span tables on MongoDB (value_custom__a).
62
64
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder" ,
63
65
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform" ,
64
66
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform" ,
@@ -334,8 +336,8 @@ def django_test_expected_failures(self):
334
336
"lookup.tests.LookupTests.test_lookup_collision" ,
335
337
"lookup.tests.LookupTests.test_lookup_rhs" ,
336
338
"lookup.tests.LookupTests.test_isnull_non_boolean_value" ,
337
- "model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk" ,
338
339
"model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression" ,
340
+ "model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk" ,
339
341
"model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys" ,
340
342
"timezones.tests.LegacyDatabaseTests.test_query_annotation" ,
341
343
"timezones.tests.NewDatabaseTests.test_query_annotation" ,
@@ -354,16 +356,16 @@ def django_test_expected_failures(self):
354
356
},
355
357
"Test executes raw SQL." : {
356
358
"annotations.tests.NonAggregateAnnotationTestCase.test_raw_sql_with_inherited_field" ,
359
+ "model_fields.test_jsonfield.TestQuerying.test_key_sql_injection_escape" ,
360
+ "model_fields.test_jsonfield.TestQuerying.test_key_transform_raw_expression" ,
361
+ "model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression" ,
357
362
"timezones.tests.LegacyDatabaseTests.test_cursor_execute_accepts_naive_datetime" ,
358
363
"timezones.tests.LegacyDatabaseTests.test_cursor_execute_returns_naive_datetime" ,
359
364
"timezones.tests.LegacyDatabaseTests.test_raw_sql" ,
360
365
"timezones.tests.NewDatabaseTests.test_cursor_execute_accepts_naive_datetime" ,
361
366
"timezones.tests.NewDatabaseTests.test_cursor_execute_returns_naive_datetime" ,
362
367
"timezones.tests.NewDatabaseTests.test_cursor_explicit_time_zone" ,
363
368
"timezones.tests.NewDatabaseTests.test_raw_sql" ,
364
- "model_fields.test_jsonfield.TestQuerying.test_key_transform_raw_expression" ,
365
- "model_fields.test_jsonfield.TestQuerying.test_key_sql_injection_escape" ,
366
- "model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression" ,
367
369
},
368
370
"Bilateral transform not implemented." : {
369
371
"db_functions.tests.FunctionTests.test_func_transform_bilateral" ,
@@ -415,7 +417,7 @@ def django_test_expected_failures(self):
415
417
"db_functions.comparison.test_cast.CastTests.test_cast_from_python_to_datetime" ,
416
418
"db_functions.comparison.test_cast.CastTests.test_cast_to_duration" ,
417
419
},
418
- "Mongodb 's Null behaviour is different from sql's " : {
420
+ "MongoDB 's null behavior is different from SQL's. " : {
419
421
"model_fields.test_jsonfield.TestQuerying.test_expression_wrapper_key_transform" ,
420
422
"model_fields.test_jsonfield.TestSaveLoad.test_json_null_different_from_sql_null" ,
421
423
"model_fields.test_jsonfield.TestQuerying.test_lookup_exclude" ,
0 commit comments