@@ -88,6 +88,31 @@ class DatabaseFeatures(BaseDatabaseFeatures):
8888 # of $setIsSubset must be arrays. Second argument is of type: null"
8989 # https://jira.mongodb.org/browse/SERVER-99186
9090 "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" ,
91116 }
92117 # $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
93118 _django_test_expected_failures_bitwise = {
@@ -112,6 +137,7 @@ def django_test_expected_failures(self):
112137 # bson.errors.InvalidDocument: cannot encode object:
113138 # <django.db.models.expressions.DatabaseDefault
114139 "basic.tests.ModelInstanceCreationTests.test_save_primary_with_db_default" ,
140+ "basic.tests.ModelInstanceCreationTests.test_save_primary_with_falsey_db_default" ,
115141 "constraints.tests.UniqueConstraintTests.test_database_default" ,
116142 "field_defaults.tests.DefaultTests" ,
117143 "migrations.test_operations.OperationTests.test_add_field_both_defaults" ,
@@ -194,9 +220,13 @@ def django_test_expected_failures(self):
194220 "prefetch_related.tests.Ticket21410Tests" ,
195221 "queryset_pickle.tests.PickleabilityTestCase.test_pickle_prefetch_related_with_m2m_and_objects_deletion" ,
196222 "serializers.test_json.JsonSerializerTestCase.test_serialize_prefetch_related_m2m" ,
223+ "serializers.test_json.JsonSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
197224 "serializers.test_jsonl.JsonlSerializerTestCase.test_serialize_prefetch_related_m2m" ,
225+ "serializers.test_jsonl.JsonlSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
198226 "serializers.test_xml.XmlSerializerTestCase.test_serialize_prefetch_related_m2m" ,
227+ "serializers.test_xml.XmlSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
199228 "serializers.test_yaml.YamlSerializerTestCase.test_serialize_prefetch_related_m2m" ,
229+ "serializers.test_yaml.YamlSerializerTestCase.test_serialize_prefetch_related_m2m_with_natural_keys" ,
200230 },
201231 "AutoField not supported." : {
202232 "bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields" ,
@@ -599,6 +629,13 @@ def django_test_expected_failures(self):
599629 "foreign_object.tests.MultiColumnFKTests" ,
600630 "foreign_object.tests.TestExtraJoinFilterQ" ,
601631 },
632+ "Tuple lookups are not supported." : {
633+ "foreign_object.test_tuple_lookups.TupleLookupsTests" ,
634+ },
635+ "ColPairs is not supported." : {
636+ # 'ColPairs' object has no attribute 'as_mql'
637+ "auth_tests.test_views.CustomUserCompositePrimaryKeyPasswordResetTest" ,
638+ },
602639 "Custom lookups are not supported." : {
603640 "custom_lookups.tests.BilateralTransformTests" ,
604641 "custom_lookups.tests.LookupTests.test_basic_lookup" ,
0 commit comments