Skip to content

Commit cbee6d2

Browse files
committed
add aggregation_regress test skips
1 parent e4fe62a commit cbee6d2

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
run: >
6969
python3 django_repo/tests/runtests.py --settings mongodb_settings -v 2
7070
aggregation
71+
aggregation_regress
7172
annotations
7273
auth_tests.test_models.UserManagerTestCase
7374
backends.base.test_base.DatabaseWrapperTests

django_mongodb/features.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ class DatabaseFeatures(BaseDatabaseFeatures):
6161
"aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate",
6262
"aggregation.tests.AggregateTestCase.test_annotation_expressions",
6363
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate",
64+
"aggregation_regress.tests.AggregationTests.test_annotation_disjunction",
65+
"aggregation_regress.tests.AggregationTests.test_decimal_aggregate_annotation_filter",
66+
# Invalid $project :: caused by :: Path collision at aggregation_regress_publisher.name
67+
"aggregation_regress.tests.AggregationTests.test_values_list_annotation_args_ordering",
68+
# QuerySet.extra(select=...) should raise NotSupportedError instead of:
69+
# 'RawSQL' object has no attribute 'as_mql'.
70+
"aggregation_regress.tests.AggregationTests.test_annotate_with_extra",
71+
"aggregation_regress.tests.AggregationTests.test_annotation",
72+
"aggregation_regress.tests.AggregationTests.test_more_more3",
73+
"aggregation_regress.tests.AggregationTests.test_more_more_more3",
74+
# To triage:
75+
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation",
76+
"aggregation_regress.tests.AggregationTests.test_more_more1",
6477
}
6578
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
6679
_django_test_expected_failures_bitwise = {
@@ -210,6 +223,7 @@ def django_test_expected_failures(self):
210223
"aggregation.tests.AggregateTestCase.test_exists_extra_where_with_aggregate",
211224
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_aggregate_values_chaining",
212225
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query",
226+
"aggregation_regress.tests.AggregationTests.test_annotate_and_join",
213227
"delete_regress.tests.DeleteTests.test_self_reference_with_through_m2m_at_second_level",
214228
"expressions.tests.BasicExpressionsTests.test_annotation_with_deeply_nested_outerref",
215229
"expressions.tests.BasicExpressionsTests.test_boolean_expression_combined",
@@ -299,6 +313,13 @@ def django_test_expected_failures(self):
299313
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_in_subquery",
300314
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_related_in_subquery",
301315
"annotations.tests.NonAggregateAnnotationTestCase.test_empty_expression_annotation",
316+
"aggregation_regress.tests.AggregationTests.test_aggregates_in_where_clause",
317+
"aggregation_regress.tests.AggregationTests.test_aggregates_in_where_clause_pre_eval",
318+
"aggregation_regress.tests.AggregationTests.test_f_expression_annotation",
319+
"aggregation_regress.tests.AggregationTests.test_having_subquery_select",
320+
"aggregation_regress.tests.AggregationTests.test_more_more4",
321+
"aggregation_regress.tests.AggregationTests.test_more_more_more5",
322+
"aggregation_regress.tests.AggregationTests.test_negated_aggregation",
302323
"db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset",
303324
"expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause",
304325
"expressions.tests.FTimeDeltaTests.test_date_subquery_subtraction",
@@ -353,6 +374,7 @@ def django_test_expected_failures(self):
353374
"QuerySet.dates() is not supported on MongoDB.": {
354375
"aggregation.tests.AggregateTestCase.test_dates_with_aggregation",
355376
"annotations.tests.AliasTests.test_dates_alias",
377+
"aggregation_regress.tests.AggregationTests.test_more_more_more2",
356378
"dates.tests.DatesTests.test_dates_trunc_datetime_fields",
357379
"dates.tests.DatesTests.test_related_model_traverse",
358380
},
@@ -370,6 +392,9 @@ def django_test_expected_failures(self):
370392
},
371393
"QuerySet.distinct() is not supported.": {
372394
"aggregation.tests.AggregateTestCase.test_sum_distinct_aggregate",
395+
"aggregation_regress.tests.AggregationTests.test_annotate_distinct_aggregate",
396+
"aggregation_regress.tests.AggregationTests.test_conditional_aggregate_on_complex_condition",
397+
"aggregation_regress.tests.AggregationTests.test_distinct_conditional_aggregate",
373398
"lookup.tests.LookupTests.test_lookup_collision_distinct",
374399
"ordering.tests.OrderingTests.test_orders_nulls_first_on_filtered_subquery",
375400
"queries.tests.ExcludeTest17600.test_exclude_plain_distinct",

0 commit comments

Comments
 (0)