Skip to content

Commit 19ef267

Browse files
committed
Clean up.
1 parent 96403f7 commit 19ef267

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

django_mongodb/features.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
4646
"lookup.tests.LookupTests.test_pattern_lookups_with_substr",
4747
# Querying ObjectID with string doesn't work.
4848
"lookup.tests.LookupTests.test_lookup_int_as_str",
49+
"model_fields.test_jsonfield.TestQuerying.test_icontains"
4950
# MongoDB gives the wrong result of log(number, base) when base is a
5051
# fractional Decimal: https://jira.mongodb.org/browse/SERVER-91223
5152
"db_functions.math.test_log.LogTests.test_decimal",
@@ -61,6 +62,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
6162
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery",
6263
# Length of null considered zero rather than null.
6364
"db_functions.text.test_length.LengthTests.test_basic",
65+
# Django-mongo does not differentiate well between joins and key transforms.
66+
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder",
67+
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform",
68+
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform",
6469
}
6570

6671
django_test_skips = {
@@ -177,6 +182,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
177182
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_extract_outerref",
178183
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_trunc_subquery_with_parameters",
179184
"lookup.tests.LookupQueryingTests.test_filter_subquery_lhs",
185+
"model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery",
186+
"model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup",
180187
# ExpressionWrapper not supported.
181188
"annotations.tests.NonAggregateAnnotationTestCase.test_combined_expression_annotation_with_aggregation",
182189
"annotations.tests.NonAggregateAnnotationTestCase.test_combined_f_expression_annotation_with_aggregation",
@@ -204,9 +211,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
204211
"annotations.tests.NonAggregateAnnotationTestCase.test_order_by_annotation",
205212
# annotate().filter().count() gives incorrect results.
206213
"db_functions.datetime.test_extract_trunc.DateFunctionTests.test_extract_year_exact_lookup",
207-
"model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery",
214+
# FieldDoesNotExist with ordering.
208215
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count",
209-
"model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup",
210216
},
211217
"Count doesn't work in QuerySet.annotate()": {
212218
"annotations.tests.AliasTests.test_alias_annotate_with_aggregation",
@@ -273,6 +279,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
273279
"lookup.tests.LookupTests.test_lookup_rhs",
274280
"lookup.tests.LookupTests.test_isnull_non_boolean_value",
275281
"model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk",
282+
"model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression",
276283
"model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys",
277284
"timezones.tests.LegacyDatabaseTests.test_query_annotation",
278285
"timezones.tests.NewDatabaseTests.test_query_annotation",
@@ -284,10 +291,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
284291
"update.tests.SimpleTest.test_empty_update_with_inheritance",
285292
"update.tests.SimpleTest.test_foreign_key_update_with_id",
286293
"update.tests.SimpleTest.test_nonempty_update_with_inheritance",
287-
"model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression",
288-
"model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder",
289-
"model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform",
290-
"model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform",
291294
},
292295
"Test inspects query for SQL": {
293296
"lookup.tests.LookupTests.test_in_ignore_none",
@@ -368,5 +371,4 @@ class DatabaseFeatures(BaseDatabaseFeatures):
368371
"model_fields.test_jsonfield.TestQuerying.test_none_key",
369372
"model_fields.test_jsonfield.TestQuerying.test_none_key_exclude",
370373
},
371-
"Pipeline filtering": {"model_fields.test_jsonfield.TestQuerying.test_icontains"},
372374
}

0 commit comments

Comments
 (0)