@@ -88,6 +88,34 @@ class DatabaseFeatures(BaseDatabaseFeatures):
88
88
# of $setIsSubset must be arrays. Second argument is of type: null"
89
89
# https://jira.mongodb.org/browse/SERVER-99186
90
90
"model_fields_.test_arrayfield.QueryingTests.test_contained_by_subquery" ,
91
+ # Broken by https://github.com/django/django/commit/65ad4ade74dc9208b9d686a451cd6045df0c9c3a
92
+ "aggregation.tests.AggregateTestCase.test_even_more_aggregate" ,
93
+ "aggregation.tests.AggregateTestCase.test_grouped_annotation_in_group_by" ,
94
+ "aggregation.tests.AggregateTestCase.test_non_grouped_annotation_not_in_group_by" ,
95
+ "aggregation_regress.tests.AggregationTests.test_aggregate_fexpr" ,
96
+ "aggregation_regress.tests.AggregationTests.test_values_list_annotation_args_ordering" ,
97
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_subquery_and_aggregate_values_chaining" ,
98
+ "annotations.tests.NonAggregateAnnotationTestCase.test_values_fields_annotations_order" ,
99
+ "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_multiple_models_with_values_and_datetime_annotations" ,
100
+ "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_multiple_models_with_values_list_and_datetime_annotations" ,
101
+ "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_multiple_models_with_values_list_and_annotations" ,
102
+ "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_with_field_and_annotation_values" ,
103
+ "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_with_two_annotated_values_list" ,
104
+ "queries.tests.Queries1Tests.test_union_values_subquery" ,
105
+ # JSONArray not implemented.
106
+ "db_functions.json.test_json_array.JSONArrayTests" ,
107
+ # Some usage of prefetch_related() raises "ColPairs is not supported."
108
+ "known_related_objects.tests.ExistingRelatedInstancesTests.test_one_to_one_multi_prefetch_related" ,
109
+ "known_related_objects.tests.ExistingRelatedInstancesTests.test_one_to_one_prefetch_related" ,
110
+ "prefetch_related.tests.DeprecationTests.test_prefetch_one_level_fallback" ,
111
+ "prefetch_related.tests.MultiDbTests.test_using_is_honored_fkey" ,
112
+ "prefetch_related.tests.MultiDbTests.test_using_is_honored_inheritance" ,
113
+ "prefetch_related.tests.NestedPrefetchTests.test_nested_prefetch_is_not_overwritten_by_related_object" ,
114
+ "prefetch_related.tests.NullableTest.test_prefetch_nullable" ,
115
+ "prefetch_related.tests.Ticket19607Tests.test_bug" ,
116
+ # Value.as_mql() doesn't call output_field.get_db_prep_save():
117
+ # https://github.com/mongodb/django-mongodb-backend/issues/282
118
+ "model_fields.test_jsonfield.TestSaveLoad.test_bulk_update_custom_get_prep_value" ,
91
119
}
92
120
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
93
121
_django_test_expected_failures_bitwise = {
@@ -112,6 +140,7 @@ def django_test_expected_failures(self):
112
140
# bson.errors.InvalidDocument: cannot encode object:
113
141
# <django.db.models.expressions.DatabaseDefault
114
142
"basic.tests.ModelInstanceCreationTests.test_save_primary_with_db_default" ,
143
+ "basic.tests.ModelInstanceCreationTests.test_save_primary_with_falsey_db_default" ,
115
144
"constraints.tests.UniqueConstraintTests.test_database_default" ,
116
145
"field_defaults.tests.DefaultTests" ,
117
146
"migrations.test_operations.OperationTests.test_add_field_both_defaults" ,
@@ -194,9 +223,13 @@ def django_test_expected_failures(self):
194
223
"prefetch_related.tests.Ticket21410Tests" ,
195
224
"queryset_pickle.tests.PickleabilityTestCase.test_pickle_prefetch_related_with_m2m_and_objects_deletion" ,
196
225
"serializers.test_json.JsonSerializerTestCase.test_serialize_prefetch_related_m2m" ,
226
+ "serializers.test_json.JsonSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
197
227
"serializers.test_jsonl.JsonlSerializerTestCase.test_serialize_prefetch_related_m2m" ,
228
+ "serializers.test_jsonl.JsonlSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
198
229
"serializers.test_xml.XmlSerializerTestCase.test_serialize_prefetch_related_m2m" ,
230
+ "serializers.test_xml.XmlSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
199
231
"serializers.test_yaml.YamlSerializerTestCase.test_serialize_prefetch_related_m2m" ,
232
+ "serializers.test_yaml.YamlSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
200
233
},
201
234
"AutoField not supported." : {
202
235
"bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields" ,
@@ -599,6 +632,13 @@ def django_test_expected_failures(self):
599
632
"foreign_object.tests.MultiColumnFKTests" ,
600
633
"foreign_object.tests.TestExtraJoinFilterQ" ,
601
634
},
635
+ "Tuple lookups are not supported." : {
636
+ "foreign_object.test_tuple_lookups.TupleLookupsTests" ,
637
+ },
638
+ "ColPairs is not supported." : {
639
+ # 'ColPairs' object has no attribute 'as_mql'
640
+ "auth_tests.test_views.CustomUserCompositePrimaryKeyPasswordResetTest" ,
641
+ },
602
642
"Custom lookups are not supported." : {
603
643
"custom_lookups.tests.BilateralTransformTests" ,
604
644
"custom_lookups.tests.LookupTests.test_basic_lookup" ,
0 commit comments