@@ -69,6 +69,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
69
69
"aggregation_regress.tests.AggregationTests.test_more_more_more3" ,
70
70
# Incorrect JOIN with GenericRelation gives incorrect results.
71
71
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation" ,
72
+ # Date type doesn't support microsecond precision in updates but it does support in creation.
73
+ "expressions.tests.FTimeDeltaTests.test_negative_timedelta_update" ,
74
+ # UUIDField is not supported.
75
+ "expressions.tests.ValueTests.test_update_UUIDField_using_Value" ,
76
+ "expressions_case.tests.CaseExpressionTests.test_update_uuid" ,
77
+ # Raise exception when try to update unsaved objects.
78
+ "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
72
79
}
73
80
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
74
81
_django_test_expected_failures_bitwise = {
@@ -115,70 +122,6 @@ def django_test_expected_failures(self):
115
122
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied" ,
116
123
"model_forms.tests.OtherModelFormTests.test_prefetch_related_queryset" ,
117
124
},
118
- "QuerySet.update() with expression not supported." : {
119
- "annotations.tests.AliasTests.test_update_with_alias" ,
120
- "annotations.tests.NonAggregateAnnotationTestCase.test_update_with_annotation" ,
121
- "db_functions.comparison.test_least.LeastTests.test_update" ,
122
- "db_functions.comparison.test_greatest.GreatestTests.test_update" ,
123
- "db_functions.text.test_left.LeftTests.test_basic" ,
124
- "db_functions.text.test_lower.LowerTests.test_basic" ,
125
- "db_functions.text.test_replace.ReplaceTests.test_update" ,
126
- "db_functions.text.test_substr.SubstrTests.test_basic" ,
127
- "db_functions.text.test_upper.UpperTests.test_basic" ,
128
- "expressions.tests.BasicExpressionsTests.test_arithmetic" ,
129
- "expressions.tests.BasicExpressionsTests.test_filter_with_join" ,
130
- "expressions.tests.BasicExpressionsTests.test_object_update" ,
131
- "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
132
- "expressions.tests.BasicExpressionsTests.test_order_of_operations" ,
133
- "expressions.tests.BasicExpressionsTests.test_parenthesis_priority" ,
134
- "expressions.tests.BasicExpressionsTests.test_update" ,
135
- "expressions.tests.BasicExpressionsTests.test_update_with_fk" ,
136
- "expressions.tests.BasicExpressionsTests.test_update_with_none" ,
137
- "expressions.tests.ExpressionsNumericTests.test_decimal_expression" ,
138
- "expressions.tests.ExpressionsNumericTests.test_increment_value" ,
139
- "expressions.tests.FTimeDeltaTests.test_delta_update" ,
140
- "expressions.tests.FTimeDeltaTests.test_negative_timedelta_update" ,
141
- "expressions.tests.ValueTests.test_update_TimeField_using_Value" ,
142
- "expressions.tests.ValueTests.test_update_UUIDField_using_Value" ,
143
- "expressions_case.tests.CaseDocumentationExamples.test_conditional_update_example" ,
144
- "expressions_case.tests.CaseExpressionTests.test_update" ,
145
- "expressions_case.tests.CaseExpressionTests.test_update_big_integer" ,
146
- "expressions_case.tests.CaseExpressionTests.test_update_binary" ,
147
- "expressions_case.tests.CaseExpressionTests.test_update_boolean" ,
148
- "expressions_case.tests.CaseExpressionTests.test_update_date" ,
149
- "expressions_case.tests.CaseExpressionTests.test_update_date_time" ,
150
- "expressions_case.tests.CaseExpressionTests.test_update_decimal" ,
151
- "expressions_case.tests.CaseExpressionTests.test_update_duration" ,
152
- "expressions_case.tests.CaseExpressionTests.test_update_email" ,
153
- "expressions_case.tests.CaseExpressionTests.test_update_file" ,
154
- "expressions_case.tests.CaseExpressionTests.test_update_file_path" ,
155
- "expressions_case.tests.CaseExpressionTests.test_update_fk" ,
156
- "expressions_case.tests.CaseExpressionTests.test_update_float" ,
157
- "expressions_case.tests.CaseExpressionTests.test_update_generic_ip_address" ,
158
- "expressions_case.tests.CaseExpressionTests.test_update_image" ,
159
- "expressions_case.tests.CaseExpressionTests.test_update_null_boolean" ,
160
- "expressions_case.tests.CaseExpressionTests.test_update_positive_big_integer" ,
161
- "expressions_case.tests.CaseExpressionTests.test_update_positive_integer" ,
162
- "expressions_case.tests.CaseExpressionTests.test_update_positive_small_integer" ,
163
- "expressions_case.tests.CaseExpressionTests.test_update_slug" ,
164
- "expressions_case.tests.CaseExpressionTests.test_update_small_integer" ,
165
- "expressions_case.tests.CaseExpressionTests.test_update_string" ,
166
- "expressions_case.tests.CaseExpressionTests.test_update_text" ,
167
- "expressions_case.tests.CaseExpressionTests.test_update_time" ,
168
- "expressions_case.tests.CaseExpressionTests.test_update_url" ,
169
- "expressions_case.tests.CaseExpressionTests.test_update_uuid" ,
170
- "expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_condition" ,
171
- "expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_value" ,
172
- "expressions_case.tests.CaseExpressionTests.test_update_without_default" ,
173
- "model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
174
- "queries.test_bulk_update.BulkUpdateNoteTests" ,
175
- "queries.test_bulk_update.BulkUpdateTests" ,
176
- "timezones.tests.NewDatabaseTests.test_update_with_timedelta" ,
177
- "update.tests.AdvancedTests.test_update_annotated_queryset" ,
178
- "update.tests.AdvancedTests.test_update_negated_f" ,
179
- "update.tests.AdvancedTests.test_update_negated_f_conditional_annotation" ,
180
- "update.tests.AdvancedTests.test_update_transformed_field" ,
181
- },
182
125
"AutoField not supported." : {
183
126
"bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields" ,
184
127
"lookup.tests.LookupTests.test_filter_by_reverse_related_field_transform" ,
@@ -322,10 +265,11 @@ def django_test_expected_failures(self):
322
265
"aggregation_regress.tests.AggregationTests.test_more_more_more5" ,
323
266
"aggregation_regress.tests.AggregationTests.test_negated_aggregation" ,
324
267
"db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset" ,
325
- "expressions_case .tests.CaseExpressionTests.test_annotate_with_in_clause " ,
268
+ "expressions .tests.BasicExpressionsTests.test_filter_with_join " ,
326
269
"expressions.tests.FTimeDeltaTests.test_date_subquery_subtraction" ,
327
270
"expressions.tests.FTimeDeltaTests.test_datetime_subquery_subtraction" ,
328
271
"expressions.tests.FTimeDeltaTests.test_time_subquery_subtraction" ,
272
+ "expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause" ,
329
273
"expressions_case.tests.CaseExpressionTests.test_in_subquery" ,
330
274
"lookup.tests.LookupTests.test_exact_query_rhs_with_selected_columns" ,
331
275
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
@@ -343,6 +287,11 @@ def django_test_expected_failures(self):
343
287
"queries.tests.Queries1Tests.test_ticket9997" ,
344
288
"queries.tests.Queries1Tests.test_ticket10742" ,
345
289
"queries.tests.Queries4Tests.test_ticket10181" ,
290
+ "queries.tests.Queries4Tests.test_ticket7095" ,
291
+ "queries.tests.Queries5Tests.test_ticket9848" ,
292
+ "update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
293
+ "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation" ,
294
+ "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc" ,
346
295
"queries.tests.Queries5Tests.test_queryset_reuse" ,
347
296
"queries.tests.QuerySetBitwiseOperationTests.test_conflicting_aliases_during_combine" ,
348
297
"queries.tests.RelabelCloneTest.test_ticket_19964" ,
@@ -366,12 +315,6 @@ def django_test_expected_failures(self):
366
315
"delete_regress.tests.Ticket19102Tests.test_ticket_19102_select_related" ,
367
316
"one_to_one.tests.OneToOneTests.test_o2o_primary_key_delete" ,
368
317
},
369
- "Cannot use QuerySet.update() when querying across multiple collections on MongoDB." : {
370
- "queries.tests.Queries4Tests.test_ticket7095" ,
371
- "queries.tests.Queries5Tests.test_ticket9848" ,
372
- "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation" ,
373
- "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc" ,
374
- },
375
318
"QuerySet.dates() is not supported on MongoDB." : {
376
319
"aggregation.tests.AggregateTestCase.test_dates_with_aggregation" ,
377
320
"annotations.tests.AliasTests.test_dates_alias" ,
@@ -441,9 +384,6 @@ def django_test_expected_failures(self):
441
384
"queries.tests.ValuesQuerysetTests.test_named_values_list_without_fields" ,
442
385
"select_related.tests.SelectRelatedTests.test_select_related_with_extra" ,
443
386
},
444
- "QuerySet.update() crash: Unrecognized expression '$count'" : {
445
- "update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
446
- },
447
387
"Test inspects query for SQL" : {
448
388
"aggregation.tests.AggregateAnnotationPruningTests.test_non_aggregate_annotation_pruned" ,
449
389
"aggregation.tests.AggregateAnnotationPruningTests.test_unreferenced_aggregate_annotation_pruned" ,
0 commit comments