@@ -40,6 +40,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
40
40
# 'TruncDate' object has no attribute 'as_mql'.
41
41
"model_fields.test_datetimefield.DateTimeFieldTests.test_lookup_date_with_use_tz" ,
42
42
"model_fields.test_datetimefield.DateTimeFieldTests.test_lookup_date_without_use_tz" ,
43
+ # BaseDatabaseOperations.date_extract_sql() not implemented.
44
+ "annotations.tests.AliasTests.test_basic_alias_f_transform_annotation" ,
43
45
# Slicing with QuerySet.count() doesn't work.
44
46
"lookup.tests.LookupTests.test_count" ,
45
47
# Lookup in order_by() not supported:
@@ -74,6 +76,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
74
76
"model_fields.test_uuid.TestQuerying.test_startswith" ,
75
77
},
76
78
"QuerySet.update() with expression not supported." : {
79
+ "annotations.tests.AliasTests.test_update_with_alias" ,
80
+ "annotations.tests.NonAggregateAnnotationTestCase.test_update_with_annotation" ,
77
81
"model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
78
82
"timezones.tests.NewDatabaseTests.test_update_with_timedelta" ,
79
83
"update.tests.AdvancedTests.test_update_annotated_queryset" ,
@@ -89,6 +93,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
89
93
"model_fields.test_autofield.SmallAutoFieldTests" ,
90
94
},
91
95
"QuerySet.select_related() not supported." : {
96
+ "annotations.tests.AliasTests.test_joined_alias_annotation" ,
97
+ "annotations.tests.NonAggregateAnnotationTestCase.test_joined_annotation" ,
92
98
"defer.tests.DeferTests.test_defer_foreign_keys_are_deferred_and_not_traversed" ,
93
99
"defer.tests.DeferTests.test_defer_with_select_related" ,
94
100
"defer.tests.DeferTests.test_only_with_select_related" ,
@@ -126,17 +132,26 @@ class DatabaseFeatures(BaseDatabaseFeatures):
126
132
},
127
133
# https://github.com/mongodb-labs/django-mongodb/issues/12
128
134
"QuerySet.aggregate() not supported." : {
135
+ "annotations.tests.AliasTests.test_filter_alias_agg_with_double_f" ,
136
+ "annotations.tests.NonAggregateAnnotationTestCase.test_aggregate_over_annotation" ,
137
+ "annotations.tests.NonAggregateAnnotationTestCase.test_aggregate_over_full_expression_annotation" ,
138
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_aggregate_values_chaining" ,
139
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_in_f_grouped_by_annotation" ,
140
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_subquery_and_aggregate_values_chaining" ,
141
+ "annotations.tests.NonAggregateAnnotationTestCase.test_filter_agg_with_double_f" ,
129
142
"lookup.tests.LookupQueryingTests.test_aggregate_combined_lookup" ,
130
143
"from_db_value.tests.FromDBValueTest.test_aggregation" ,
131
144
"timezones.tests.LegacyDatabaseTests.test_query_aggregation" ,
132
145
"timezones.tests.NewDatabaseTests.test_query_aggregation" ,
133
146
},
134
147
"QuerySet.annotate() has some limitations." : {
135
148
# Exists not supported.
149
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query" ,
136
150
"lookup.tests.LookupTests.test_exact_exists" ,
137
151
"lookup.tests.LookupTests.test_nested_outerref_lhs" ,
138
152
"lookup.tests.LookupQueryingTests.test_filter_exists_lhs" ,
139
153
# QuerySet.alias() doesn't work.
154
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_in_subquery" ,
140
155
"lookup.tests.LookupQueryingTests.test_alias" ,
141
156
# annotate() with combined expressions doesn't work:
142
157
# 'WhereNode' object has no attribute 'field'
@@ -150,13 +165,55 @@ class DatabaseFeatures(BaseDatabaseFeatures):
150
165
# Subquery not supported.
151
166
"lookup.tests.LookupQueryingTests.test_filter_subquery_lhs" ,
152
167
# ExpressionWrapper not supported.
168
+ "annotations.tests.NonAggregateAnnotationTestCase.test_combined_expression_annotation_with_aggregation" ,
169
+ "annotations.tests.NonAggregateAnnotationTestCase.test_combined_f_expression_annotation_with_aggregation" ,
170
+ "annotations.tests.NonAggregateAnnotationTestCase.test_empty_expression_annotation" ,
171
+ "annotations.tests.NonAggregateAnnotationTestCase.test_full_expression_annotation" ,
172
+ "annotations.tests.NonAggregateAnnotationTestCase.test_full_expression_annotation_with_aggregation" ,
173
+ "annotations.tests.NonAggregateAnnotationTestCase.test_grouping_by_q_expression_annotation" ,
174
+ "annotations.tests.NonAggregateAnnotationTestCase.test_mixed_type_annotation_numbers" ,
175
+ "annotations.tests.NonAggregateAnnotationTestCase.test_q_expression_annotation_with_aggregation" ,
153
176
"lookup.tests.LookupQueryingTests.test_filter_wrapped_lookup_lhs" ,
177
+ # Length not implemented.
178
+ "annotations.tests.NonAggregateAnnotationTestCase.test_chaining_transforms" ,
179
+ # CombinedExpression not implemented.
180
+ "annotations.tests.NonAggregateAnnotationTestCase.test_combined_annotation_commutative" ,
181
+ "annotations.tests.NonAggregateAnnotationTestCase.test_decimal_annotation" ,
182
+ "annotations.tests.NonAggregateAnnotationTestCase.test_defer_annotation" ,
183
+ "annotations.tests.NonAggregateAnnotationTestCase.test_filter_decimal_annotation" ,
184
+ "annotations.tests.NonAggregateAnnotationTestCase.test_values_annotation" ,
185
+ # Func not implemented.
186
+ "annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions" ,
187
+ "annotations.tests.NonAggregateAnnotationTestCase.test_custom_functions_can_ref_other_functions" ,
188
+ # Floor not implemented.
189
+ "annotations.tests.NonAggregateAnnotationTestCase.test_custom_transform_annotation" ,
190
+ # Subquery not supported.
191
+ "annotations.tests.NonAggregateAnnotationTestCase.test_empty_queryset_annotation" ,
192
+ # Coalesce not implemented.
193
+ "annotations.tests.AliasTests.test_alias_annotation_expression" ,
194
+ "annotations.tests.NonAggregateAnnotationTestCase.test_full_expression_wrapped_annotation" ,
195
+ # BaseDatabaseOperations may require a datetime_extract_sql().
196
+ "annotations.tests.NonAggregateAnnotationTestCase.test_joined_transformed_annotation" ,
197
+ # BaseDatabaseOperations may require a format_for_duration_arithmetic().
198
+ "annotations.tests.NonAggregateAnnotationTestCase.test_mixed_type_annotation_date_interval" ,
199
+ # FieldDoesNotExist with ordering.
200
+ "annotations.tests.AliasTests.test_order_by_alias" ,
201
+ "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_aggregate" ,
202
+ "annotations.tests.NonAggregateAnnotationTestCase.test_order_by_annotation" ,
203
+ },
204
+ "Count doesn't work in QuerySet.annotate()" : {
205
+ "annotations.tests.AliasTests.test_alias_annotate_with_aggregation" ,
206
+ "annotations.tests.AliasTests.test_order_by_alias_aggregate" ,
207
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotate_exists" ,
208
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotate_with_aggregation" ,
154
209
},
155
210
"QuerySet.dates() is not supported on MongoDB." : {
211
+ "annotations.tests.AliasTests.test_dates_alias" ,
156
212
"dates.tests.DatesTests.test_dates_trunc_datetime_fields" ,
157
213
"dates.tests.DatesTests.test_related_model_traverse" ,
158
214
},
159
215
"QuerySet.datetimes() is not supported on MongoDB." : {
216
+ "annotations.tests.AliasTests.test_datetimes_alias" ,
160
217
"datetimes.tests.DateTimesTests.test_21432" ,
161
218
"datetimes.tests.DateTimesTests.test_datetimes_has_lazy_iterator" ,
162
219
"datetimes.tests.DateTimesTests.test_datetimes_returns_available_dates_for_given_scope_and_given_field" ,
@@ -169,13 +226,25 @@ class DatabaseFeatures(BaseDatabaseFeatures):
169
226
"update.tests.AdvancedTests.test_update_all" ,
170
227
},
171
228
"QuerySet.extra() is not supported." : {
229
+ "annotations.tests.NonAggregateAnnotationTestCase.test_column_field_ordering" ,
230
+ "annotations.tests.NonAggregateAnnotationTestCase.test_column_field_ordering_with_deferred" ,
172
231
"basic.tests.ModelTest.test_extra_method_select_argument_with_dashes" ,
173
232
"basic.tests.ModelTest.test_extra_method_select_argument_with_dashes_and_values" ,
174
233
"defer.tests.DeferTests.test_defer_extra" ,
175
234
"lookup.tests.LookupTests.test_values" ,
176
235
"lookup.tests.LookupTests.test_values_list" ,
177
236
},
178
237
"Queries with multiple tables are not supported." : {
238
+ "annotations.tests.AliasTests.test_alias_default_alias_expression" ,
239
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_aggregate_with_m2o" ,
240
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_related_in_subquery" ,
241
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_filter_with_subquery" ,
242
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_reverse_m2m" ,
243
+ "annotations.tests.NonAggregateAnnotationTestCase.test_mti_annotations" ,
244
+ "annotations.tests.NonAggregateAnnotationTestCase.test_values_with_pk_annotation" ,
245
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_subquery_outerref_transform" ,
246
+ "annotations.tests.NonAggregateAnnotationTestCase.test_annotation_with_m2m" ,
247
+ "annotations.tests.NonAggregateAnnotationTestCase.test_chaining_annotation_filter_with_m2m" ,
179
248
"defer.tests.BigChildDeferTests.test_defer_baseclass_when_subclass_has_added_field" ,
180
249
"defer.tests.BigChildDeferTests.test_defer_subclass" ,
181
250
"defer.tests.BigChildDeferTests.test_defer_subclass_both" ,
@@ -210,6 +279,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
210
279
"lookup.tests.LookupTests.test_textfield_exact_null" ,
211
280
},
212
281
"Test executes raw SQL." : {
282
+ "annotations.tests.NonAggregateAnnotationTestCase.test_raw_sql_with_inherited_field" ,
213
283
"timezones.tests.LegacyDatabaseTests.test_cursor_execute_accepts_naive_datetime" ,
214
284
"timezones.tests.LegacyDatabaseTests.test_cursor_execute_returns_naive_datetime" ,
215
285
"timezones.tests.LegacyDatabaseTests.test_raw_sql" ,
0 commit comments