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