@@ -59,6 +59,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
59
59
"aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate" ,
60
60
"aggregation.tests.AggregateTestCase.test_annotation_expressions" ,
61
61
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
62
+ # Date type doesn't support microsecond precision updates but it does support creation.
63
+ "expressions.tests.FTimeDeltaTests.test_negative_timedelta_update" ,
64
+ # UUIDField is not supported.
65
+ "expressions.tests.ValueTests.test_update_UUIDField_using_Value" ,
66
+ "expressions_case.tests.CaseExpressionTests.test_update_uuid" ,
67
+ # Raise exception when try to update unsaved objects.
68
+ "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
62
69
}
63
70
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
64
71
_django_test_expected_failures_bitwise = {
@@ -104,70 +111,6 @@ def django_test_expected_failures(self):
104
111
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_proxied" ,
105
112
"m2m_through_regress.test_multitable.MultiTableTests.test_m2m_prefetch_reverse_proxied" ,
106
113
},
107
- "QuerySet.update() with expression not supported." : {
108
- "annotations.tests.AliasTests.test_update_with_alias" ,
109
- "annotations.tests.NonAggregateAnnotationTestCase.test_update_with_annotation" ,
110
- "db_functions.comparison.test_least.LeastTests.test_update" ,
111
- "db_functions.comparison.test_greatest.GreatestTests.test_update" ,
112
- "db_functions.text.test_left.LeftTests.test_basic" ,
113
- "db_functions.text.test_lower.LowerTests.test_basic" ,
114
- "db_functions.text.test_replace.ReplaceTests.test_update" ,
115
- "db_functions.text.test_substr.SubstrTests.test_basic" ,
116
- "db_functions.text.test_upper.UpperTests.test_basic" ,
117
- "expressions.tests.BasicExpressionsTests.test_arithmetic" ,
118
- "expressions.tests.BasicExpressionsTests.test_filter_with_join" ,
119
- "expressions.tests.BasicExpressionsTests.test_object_update" ,
120
- "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
121
- "expressions.tests.BasicExpressionsTests.test_order_of_operations" ,
122
- "expressions.tests.BasicExpressionsTests.test_parenthesis_priority" ,
123
- "expressions.tests.BasicExpressionsTests.test_update" ,
124
- "expressions.tests.BasicExpressionsTests.test_update_with_fk" ,
125
- "expressions.tests.BasicExpressionsTests.test_update_with_none" ,
126
- "expressions.tests.ExpressionsNumericTests.test_decimal_expression" ,
127
- "expressions.tests.ExpressionsNumericTests.test_increment_value" ,
128
- "expressions.tests.FTimeDeltaTests.test_delta_update" ,
129
- "expressions.tests.FTimeDeltaTests.test_negative_timedelta_update" ,
130
- "expressions.tests.ValueTests.test_update_TimeField_using_Value" ,
131
- "expressions.tests.ValueTests.test_update_UUIDField_using_Value" ,
132
- "expressions_case.tests.CaseDocumentationExamples.test_conditional_update_example" ,
133
- "expressions_case.tests.CaseExpressionTests.test_update" ,
134
- "expressions_case.tests.CaseExpressionTests.test_update_big_integer" ,
135
- "expressions_case.tests.CaseExpressionTests.test_update_binary" ,
136
- "expressions_case.tests.CaseExpressionTests.test_update_boolean" ,
137
- "expressions_case.tests.CaseExpressionTests.test_update_date" ,
138
- "expressions_case.tests.CaseExpressionTests.test_update_date_time" ,
139
- "expressions_case.tests.CaseExpressionTests.test_update_decimal" ,
140
- "expressions_case.tests.CaseExpressionTests.test_update_duration" ,
141
- "expressions_case.tests.CaseExpressionTests.test_update_email" ,
142
- "expressions_case.tests.CaseExpressionTests.test_update_file" ,
143
- "expressions_case.tests.CaseExpressionTests.test_update_file_path" ,
144
- "expressions_case.tests.CaseExpressionTests.test_update_fk" ,
145
- "expressions_case.tests.CaseExpressionTests.test_update_float" ,
146
- "expressions_case.tests.CaseExpressionTests.test_update_generic_ip_address" ,
147
- "expressions_case.tests.CaseExpressionTests.test_update_image" ,
148
- "expressions_case.tests.CaseExpressionTests.test_update_null_boolean" ,
149
- "expressions_case.tests.CaseExpressionTests.test_update_positive_big_integer" ,
150
- "expressions_case.tests.CaseExpressionTests.test_update_positive_integer" ,
151
- "expressions_case.tests.CaseExpressionTests.test_update_positive_small_integer" ,
152
- "expressions_case.tests.CaseExpressionTests.test_update_slug" ,
153
- "expressions_case.tests.CaseExpressionTests.test_update_small_integer" ,
154
- "expressions_case.tests.CaseExpressionTests.test_update_string" ,
155
- "expressions_case.tests.CaseExpressionTests.test_update_text" ,
156
- "expressions_case.tests.CaseExpressionTests.test_update_time" ,
157
- "expressions_case.tests.CaseExpressionTests.test_update_url" ,
158
- "expressions_case.tests.CaseExpressionTests.test_update_uuid" ,
159
- "expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_condition" ,
160
- "expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_value" ,
161
- "expressions_case.tests.CaseExpressionTests.test_update_without_default" ,
162
- "model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
163
- "queries.test_bulk_update.BulkUpdateNoteTests" ,
164
- "queries.test_bulk_update.BulkUpdateTests" ,
165
- "timezones.tests.NewDatabaseTests.test_update_with_timedelta" ,
166
- "update.tests.AdvancedTests.test_update_annotated_queryset" ,
167
- "update.tests.AdvancedTests.test_update_negated_f" ,
168
- "update.tests.AdvancedTests.test_update_negated_f_conditional_annotation" ,
169
- "update.tests.AdvancedTests.test_update_transformed_field" ,
170
- },
171
114
"AutoField not supported." : {
172
115
"bulk_create.tests.BulkCreateTests.test_bulk_insert_nullable_fields" ,
173
116
"lookup.tests.LookupTests.test_filter_by_reverse_related_field_transform" ,
@@ -298,10 +241,11 @@ def django_test_expected_failures(self):
298
241
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_related_in_subquery" ,
299
242
"annotations.tests.NonAggregateAnnotationTestCase.test_empty_expression_annotation" ,
300
243
"db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset" ,
301
- "expressions_case .tests.CaseExpressionTests.test_annotate_with_in_clause " ,
244
+ "expressions .tests.BasicExpressionsTests.test_filter_with_join " ,
302
245
"expressions.tests.FTimeDeltaTests.test_date_subquery_subtraction" ,
303
246
"expressions.tests.FTimeDeltaTests.test_datetime_subquery_subtraction" ,
304
247
"expressions.tests.FTimeDeltaTests.test_time_subquery_subtraction" ,
248
+ "expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause" ,
305
249
"expressions_case.tests.CaseExpressionTests.test_in_subquery" ,
306
250
"lookup.tests.LookupTests.test_exact_query_rhs_with_selected_columns" ,
307
251
"lookup.tests.LookupTests.test_exact_sliced_queryset_limit_one" ,
@@ -319,6 +263,11 @@ def django_test_expected_failures(self):
319
263
"queries.tests.Queries1Tests.test_ticket9997" ,
320
264
"queries.tests.Queries1Tests.test_ticket10742" ,
321
265
"queries.tests.Queries4Tests.test_ticket10181" ,
266
+ "queries.tests.Queries4Tests.test_ticket7095" ,
267
+ "queries.tests.Queries5Tests.test_ticket9848" ,
268
+ "update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
269
+ "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation" ,
270
+ "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc" ,
322
271
"queries.tests.Queries5Tests.test_queryset_reuse" ,
323
272
"queries.tests.QuerySetBitwiseOperationTests.test_conflicting_aliases_during_combine" ,
324
273
"queries.tests.RelabelCloneTest.test_ticket_19964" ,
@@ -342,12 +291,6 @@ def django_test_expected_failures(self):
342
291
"delete_regress.tests.Ticket19102Tests.test_ticket_19102_select_related" ,
343
292
"one_to_one.tests.OneToOneTests.test_o2o_primary_key_delete" ,
344
293
},
345
- "Cannot use QuerySet.update() when querying across multiple collections on MongoDB." : {
346
- "queries.tests.Queries4Tests.test_ticket7095" ,
347
- "queries.tests.Queries5Tests.test_ticket9848" ,
348
- "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation" ,
349
- "update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc" ,
350
- },
351
294
"QuerySet.dates() is not supported on MongoDB." : {
352
295
"aggregation.tests.AggregateTestCase.test_dates_with_aggregation" ,
353
296
"annotations.tests.AliasTests.test_dates_alias" ,
@@ -413,9 +356,6 @@ def django_test_expected_failures(self):
413
356
"queries.tests.ValuesQuerysetTests.test_named_values_list_without_fields" ,
414
357
"select_related.tests.SelectRelatedTests.test_select_related_with_extra" ,
415
358
},
416
- "QuerySet.update() crash: Unrecognized expression '$count'" : {
417
- "update.tests.AdvancedTests.test_update_annotated_multi_table_queryset" ,
418
- },
419
359
"Test inspects query for SQL" : {
420
360
"aggregation.tests.AggregateAnnotationPruningTests.test_non_aggregate_annotation_pruned" ,
421
361
"aggregation.tests.AggregateAnnotationPruningTests.test_unreferenced_aggregate_annotation_pruned" ,
0 commit comments