@@ -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 = {
@@ -114,70 +121,6 @@ def django_test_expected_failures(self):
114
121
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied" ,
115
122
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied" ,
116
123
},
117
- "QuerySet.update() with expression not supported." : {
118
- "annotations.tests.AliasTests.test_update_with_alias" ,
119
- "annotations.tests.NonAggregateAnnotationTestCase.test_update_with_annotation" ,
120
- "db_functions.comparison.test_least.LeastTests.test_update" ,
121
- "db_functions.comparison.test_greatest.GreatestTests.test_update" ,
122
- "db_functions.text.test_left.LeftTests.test_basic" ,
123
- "db_functions.text.test_lower.LowerTests.test_basic" ,
124
- "db_functions.text.test_replace.ReplaceTests.test_update" ,
125
- "db_functions.text.test_substr.SubstrTests.test_basic" ,
126
- "db_functions.text.test_upper.UpperTests.test_basic" ,
127
- "expressions.tests.BasicExpressionsTests.test_arithmetic" ,
128
- "expressions.tests.BasicExpressionsTests.test_filter_with_join" ,
129
- "expressions.tests.BasicExpressionsTests.test_object_update" ,
130
- "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
131
- "expressions.tests.BasicExpressionsTests.test_order_of_operations" ,
132
- "expressions.tests.BasicExpressionsTests.test_parenthesis_priority" ,
133
- "expressions.tests.BasicExpressionsTests.test_update" ,
134
- "expressions.tests.BasicExpressionsTests.test_update_with_fk" ,
135
- "expressions.tests.BasicExpressionsTests.test_update_with_none" ,
136
- "expressions.tests.ExpressionsNumericTests.test_decimal_expression" ,
137
- "expressions.tests.ExpressionsNumericTests.test_increment_value" ,
138
- "expressions.tests.FTimeDeltaTests.test_delta_update" ,
139
- "expressions.tests.FTimeDeltaTests.test_negative_timedelta_update" ,
140
- "expressions.tests.ValueTests.test_update_TimeField_using_Value" ,
141
- "expressions.tests.ValueTests.test_update_UUIDField_using_Value" ,
142
- "expressions_case.tests.CaseDocumentationExamples.test_conditional_update_example" ,
143
- "expressions_case.tests.CaseExpressionTests.test_update" ,
144
- "expressions_case.tests.CaseExpressionTests.test_update_big_integer" ,
145
- "expressions_case.tests.CaseExpressionTests.test_update_binary" ,
146
- "expressions_case.tests.CaseExpressionTests.test_update_boolean" ,
147
- "expressions_case.tests.CaseExpressionTests.test_update_date" ,
148
- "expressions_case.tests.CaseExpressionTests.test_update_date_time" ,
149
- "expressions_case.tests.CaseExpressionTests.test_update_decimal" ,
150
- "expressions_case.tests.CaseExpressionTests.test_update_duration" ,
151
- "expressions_case.tests.CaseExpressionTests.test_update_email" ,
152
- "expressions_case.tests.CaseExpressionTests.test_update_file" ,
153
- "expressions_case.tests.CaseExpressionTests.test_update_file_path" ,
154
- "expressions_case.tests.CaseExpressionTests.test_update_fk" ,
155
- "expressions_case.tests.CaseExpressionTests.test_update_float" ,
156
- "expressions_case.tests.CaseExpressionTests.test_update_generic_ip_address" ,
157
- "expressions_case.tests.CaseExpressionTests.test_update_image" ,
158
- "expressions_case.tests.CaseExpressionTests.test_update_null_boolean" ,
159
- "expressions_case.tests.CaseExpressionTests.test_update_positive_big_integer" ,
160
- "expressions_case.tests.CaseExpressionTests.test_update_positive_integer" ,
161
- "expressions_case.tests.CaseExpressionTests.test_update_positive_small_integer" ,
162
- "expressions_case.tests.CaseExpressionTests.test_update_slug" ,
163
- "expressions_case.tests.CaseExpressionTests.test_update_small_integer" ,
164
- "expressions_case.tests.CaseExpressionTests.test_update_string" ,
165
- "expressions_case.tests.CaseExpressionTests.test_update_text" ,
166
- "expressions_case.tests.CaseExpressionTests.test_update_time" ,
167
- "expressions_case.tests.CaseExpressionTests.test_update_url" ,
168
- "expressions_case.tests.CaseExpressionTests.test_update_uuid" ,
169
- "expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_condition" ,
170
- "expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_value" ,
171
- "expressions_case.tests.CaseExpressionTests.test_update_without_default" ,
172
- "model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
173
- "queries.test_bulk_update.BulkUpdateNoteTests" ,
174
- "queries.test_bulk_update.BulkUpdateTests" ,
175
- "timezones.tests.NewDatabaseTests.test_update_with_timedelta" ,
176
- "update.tests.AdvancedTests.test_update_annotated_queryset" ,
177
- "update.tests.AdvancedTests.test_update_negated_f" ,
178
- "update.tests.AdvancedTests.test_update_negated_f_conditional_annotation" ,
179
- "update.tests.AdvancedTests.test_update_transformed_field" ,
180
- },
181
124
"AutoField not supported." : {
182
125
"bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields" ,
183
126
"lookup.tests.LookupTests.test_filter_by_reverse_related_field_transform" ,
@@ -316,10 +259,11 @@ def django_test_expected_failures(self):
316
259
"aggregation_regress.tests.AggregationTests.test_more_more_more5" ,
317
260
"aggregation_regress.tests.AggregationTests.test_negated_aggregation" ,
318
261
"db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset" ,
319
- "expressions_case .tests.CaseExpressionTests.test_annotate_with_in_clause " ,
262
+ "expressions .tests.BasicExpressionsTests.test_filter_with_join " ,
320
263
"expressions.tests.FTimeDeltaTests.test_date_subquery_subtraction" ,
321
264
"expressions.tests.FTimeDeltaTests.test_datetime_subquery_subtraction" ,
322
265
"expressions.tests.FTimeDeltaTests.test_time_subquery_subtraction" ,
266
+ "expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause" ,
323
267
"expressions_case.tests.CaseExpressionTests.test_in_subquery" ,
324
268
"lookup.tests.LookupTests.test_exact_query_rhs_with_selected_columns" ,
325
269
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
@@ -337,6 +281,11 @@ def django_test_expected_failures(self):
337
281
"queries.tests.Queries1Tests.test_ticket9997" ,
338
282
"queries.tests.Queries1Tests.test_ticket10742" ,
339
283
"queries.tests.Queries4Tests.test_ticket10181" ,
284
+ "queries.tests.Queries4Tests.test_ticket7095" ,
285
+ "queries.tests.Queries5Tests.test_ticket9848" ,
286
+ "update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
287
+ "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation" ,
288
+ "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc" ,
340
289
"queries.tests.Queries5Tests.test_queryset_reuse" ,
341
290
"queries.tests.QuerySetBitwiseOperationTests.test_conflicting_aliases_during_combine" ,
342
291
"queries.tests.RelabelCloneTest.test_ticket_19964" ,
@@ -360,12 +309,6 @@ def django_test_expected_failures(self):
360
309
"delete_regress.tests.Ticket19102Tests.test_ticket_19102_select_related" ,
361
310
"one_to_one.tests.OneToOneTests.test_o2o_primary_key_delete" ,
362
311
},
363
- "Cannot use QuerySet.update() when querying across multiple collections on MongoDB." : {
364
- "queries.tests.Queries4Tests.test_ticket7095" ,
365
- "queries.tests.Queries5Tests.test_ticket9848" ,
366
- "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation" ,
367
- "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc" ,
368
- },
369
312
"QuerySet.dates() is not supported on MongoDB." : {
370
313
"aggregation.tests.AggregateTestCase.test_dates_with_aggregation" ,
371
314
"annotations.tests.AliasTests.test_dates_alias" ,
@@ -435,9 +378,6 @@ def django_test_expected_failures(self):
435
378
"queries.tests.ValuesQuerysetTests.test_named_values_list_without_fields" ,
436
379
"select_related.tests.SelectRelatedTests.test_select_related_with_extra" ,
437
380
},
438
- "QuerySet.update() crash: Unrecognized expression '$count'" : {
439
- "update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
440
- },
441
381
"Test inspects query for SQL" : {
442
382
"aggregation.tests.AggregateAnnotationPruningTests.test_non_aggregate_annotation_pruned" ,
443
383
"aggregation.tests.AggregateAnnotationPruningTests.test_unreferenced_aggregate_annotation_pruned" ,
0 commit comments