Skip to content

Commit 892f429

Browse files
WaVEVtimgraham
authored andcommitted
add aggregation_regress test skips
1 parent 9b2d02f commit 892f429

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ class DatabaseFeatures(BaseDatabaseFeatures):
5959
"aggregation.tests.AggregateTestCase.test_aggregation_default_passed_another_aggregate",
6060
"aggregation.tests.AggregateTestCase.test_annotation_expressions",
6161
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate",
62+
"aggregation_regress.tests.AggregationTests.test_annotation_disjunction",
63+
"aggregation_regress.tests.AggregationTests.test_decimal_aggregate_annotation_filter",
64+
# Invalid $project :: caused by :: Path collision at aggregation_regress_publisher.name
65+
"aggregation_regress.tests.AggregationTests.test_values_list_annotation_args_ordering",
66+
# QuerySet.extra(select=...) should raise NotSupportedError instead of:
67+
# 'RawSQL' object has no attribute 'as_mql'.
68+
"aggregation_regress.tests.AggregationTests.test_annotate_with_extra",
69+
"aggregation_regress.tests.AggregationTests.test_annotation",
70+
"aggregation_regress.tests.AggregationTests.test_more_more3",
71+
"aggregation_regress.tests.AggregationTests.test_more_more_more3",
72+
# Incorrect JOIN with GenericRelation gives incorrect results.
73+
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation",
6274
}
6375
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
6476
_django_test_expected_failures_bitwise = {
@@ -208,6 +220,7 @@ def django_test_expected_failures(self):
208220
"aggregation.tests.AggregateTestCase.test_exists_extra_where_with_aggregate",
209221
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_aggregate_values_chaining",
210222
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query",
223+
"aggregation_regress.tests.AggregationTests.test_annotate_and_join",
211224
"delete_regress.tests.DeleteTests.test_self_reference_with_through_m2m_at_second_level",
212225
"expressions.tests.BasicExpressionsTests.test_annotation_with_deeply_nested_outerref",
213226
"expressions.tests.BasicExpressionsTests.test_boolean_expression_combined",
@@ -297,6 +310,13 @@ def django_test_expected_failures(self):
297310
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_in_subquery",
298311
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_related_in_subquery",
299312
"annotations.tests.NonAggregateAnnotationTestCase.test_empty_expression_annotation",
313+
"aggregation_regress.tests.AggregationTests.test_aggregates_in_where_clause",
314+
"aggregation_regress.tests.AggregationTests.test_aggregates_in_where_clause_pre_eval",
315+
"aggregation_regress.tests.AggregationTests.test_f_expression_annotation",
316+
"aggregation_regress.tests.AggregationTests.test_having_subquery_select",
317+
"aggregation_regress.tests.AggregationTests.test_more_more4",
318+
"aggregation_regress.tests.AggregationTests.test_more_more_more5",
319+
"aggregation_regress.tests.AggregationTests.test_negated_aggregation",
300320
"db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset",
301321
"expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause",
302322
"expressions.tests.FTimeDeltaTests.test_date_subquery_subtraction",
@@ -351,6 +371,7 @@ def django_test_expected_failures(self):
351371
"QuerySet.dates() is not supported on MongoDB.": {
352372
"aggregation.tests.AggregateTestCase.test_dates_with_aggregation",
353373
"annotations.tests.AliasTests.test_dates_alias",
374+
"aggregation_regress.tests.AggregationTests.test_more_more_more2",
354375
"dates.tests.DatesTests.test_dates_trunc_datetime_fields",
355376
"dates.tests.DatesTests.test_related_model_traverse",
356377
},
@@ -368,6 +389,9 @@ def django_test_expected_failures(self):
368389
},
369390
"QuerySet.distinct() is not supported.": {
370391
"aggregation.tests.AggregateTestCase.test_sum_distinct_aggregate",
392+
"aggregation_regress.tests.AggregationTests.test_annotate_distinct_aggregate",
393+
"aggregation_regress.tests.AggregationTests.test_conditional_aggregate_on_complex_condition",
394+
"aggregation_regress.tests.AggregationTests.test_distinct_conditional_aggregate",
371395
"lookup.tests.LookupTests.test_lookup_collision_distinct",
372396
"ordering.tests.OrderingTests.test_orders_nulls_first_on_filtered_subquery",
373397
"queries.tests.ExcludeTest17600.test_exclude_plain_distinct",

0 commit comments

Comments
 (0)