@@ -61,6 +61,11 @@ class DatabaseFeatures(BaseDatabaseFeatures):
61
61
"aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate" ,
62
62
"aggregation.tests.AggregateTestCase.test_annotation_expressions" ,
63
63
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
64
+ # QuerySet.extra(where=...) should raise NotSupportedError instead of:
65
+ # 'ExtraWhere' object has no attribute 'as_mql'.
66
+ "many_to_one.tests.ManyToOneTests.test_selects" ,
67
+ # QuerySet.delete() with JOIN should raise NotSupportedError.
68
+ "many_to_one.tests.ManyToOneTests.test_delete" ,
64
69
}
65
70
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
66
71
_django_test_expected_failures_bitwise = {
@@ -105,6 +110,12 @@ def django_test_expected_failures(self):
105
110
"QuerySet.prefetch_related() is not supported on MongoDB." : {
106
111
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied" ,
107
112
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied" ,
113
+ "many_to_many.tests.ManyToManyTests.test_add_after_prefetch" ,
114
+ "many_to_many.tests.ManyToManyTests.test_add_then_remove_after_prefetch" ,
115
+ "many_to_many.tests.ManyToManyTests.test_clear_after_prefetch" ,
116
+ "many_to_many.tests.ManyToManyTests.test_create_after_prefetch" ,
117
+ "many_to_many.tests.ManyToManyTests.test_remove_after_prefetch" ,
118
+ "many_to_many.tests.ManyToManyTests.test_set_after_prefetch" ,
108
119
},
109
120
"QuerySet.update() with expression not supported." : {
110
121
"annotations.tests.AliasTests.test_update_with_alias" ,
@@ -175,6 +186,7 @@ def django_test_expected_failures(self):
175
186
"lookup.tests.LookupTests.test_filter_by_reverse_related_field_transform" ,
176
187
"lookup.tests.LookupTests.test_in_ignore_none_with_unhashable_items" ,
177
188
"m2m_through_regress.tests.ThroughLoadDataTestCase.test_sequence_creation" ,
189
+ "many_to_many.tests.ManyToManyTests.test_add_remove_invalid_type" ,
178
190
"model_fields.test_autofield.AutoFieldTests" ,
179
191
"model_fields.test_autofield.BigAutoFieldTests" ,
180
192
"model_fields.test_autofield.SmallAutoFieldTests" ,
@@ -226,6 +238,7 @@ def django_test_expected_failures(self):
226
238
"lookup.tests.LookupTests.test_exact_exists" ,
227
239
"lookup.tests.LookupTests.test_nested_outerref_lhs" ,
228
240
"lookup.tests.LookupQueryingTests.test_filter_exists_lhs" ,
241
+ "null_queries.tests.NullQueriesTests.test_reverse_relations" ,
229
242
"queries.tests.ExcludeTest17600.test_exclude_plain" ,
230
243
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude_variation" ,
231
244
"queries.tests.ExcludeTest17600.test_exclude_with_q_object_no_distinct" ,
@@ -309,6 +322,14 @@ def django_test_expected_failures(self):
309
322
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
310
323
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one_offset" ,
311
324
"lookup.tests.LookupTests.test_in_different_database" ,
325
+ "many_to_many.tests.ManyToManyTests.test_assign" ,
326
+ "many_to_many.tests.ManyToManyTests.test_assign_ids" ,
327
+ "many_to_many.tests.ManyToManyTests.test_clear" ,
328
+ "many_to_many.tests.ManyToManyTests.test_remove" ,
329
+ "many_to_many.tests.ManyToManyTests.test_reverse_assign_with_queryset" ,
330
+ "many_to_many.tests.ManyToManyTests.test_set" ,
331
+ "many_to_many.tests.ManyToManyTests.test_set_existing_different_type" ,
332
+ "many_to_one.tests.ManyToOneTests.test_get_prefetch_queryset_reverse_warning" ,
312
333
"model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery" ,
313
334
"one_to_one.tests.OneToOneTests.test_get_prefetch_queryset_warning" ,
314
335
"one_to_one.tests.OneToOneTests.test_rel_pk_subquery" ,
@@ -355,6 +376,7 @@ def django_test_expected_failures(self):
355
376
"annotations.tests.AliasTests.test_dates_alias" ,
356
377
"dates.tests.DatesTests.test_dates_trunc_datetime_fields" ,
357
378
"dates.tests.DatesTests.test_related_model_traverse" ,
379
+ "many_to_one.tests.ManyToOneTests.test_select_related" ,
358
380
},
359
381
"QuerySet.datetimes() is not supported on MongoDB." : {
360
382
"annotations.tests.AliasTests.test_datetimes_alias" ,
@@ -371,6 +393,9 @@ def django_test_expected_failures(self):
371
393
"QuerySet.distinct() is not supported." : {
372
394
"aggregation.tests.AggregateTestCase.test_sum_distinct_aggregate" ,
373
395
"lookup.tests.LookupTests.test_lookup_collision_distinct" ,
396
+ "many_to_many.tests.ManyToManyTests.test_reverse_selects" ,
397
+ "many_to_many.tests.ManyToManyTests.test_selects" ,
398
+ "many_to_one.tests.ManyToOneTests.test_reverse_selects" ,
374
399
"ordering.tests.OrderingTests.test_orders_nulls_first_on_filtered_subquery" ,
375
400
"queries.tests.ExcludeTest17600.test_exclude_plain_distinct" ,
376
401
"queries.tests.ExcludeTest17600.test_exclude_with_q_is_equal_to_plain_exclude" ,
0 commit comments