Skip to content

Commit 9b1227b

Browse files
timgrahamWaVEV
authored andcommitted
add aggregation_regress test skips
1 parent 9b2d02f commit 9b1227b

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
@@ -59,6 +59,19 @@ 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+
# To triage:
73+
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation",
74+
"aggregation_regress.tests.AggregationTests.test_more_more1",
6275
}
6376
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
6477
_django_test_expected_failures_bitwise = {
@@ -208,6 +221,7 @@ def django_test_expected_failures(self):
208221
"aggregation.tests.AggregateTestCase.test_exists_extra_where_with_aggregate",
209222
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_aggregate_values_chaining",
210223
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_exists_none_query",
224+
"aggregation_regress.tests.AggregationTests.test_annotate_and_join",
211225
"delete_regress.tests.DeleteTests.test_self_reference_with_through_m2m_at_second_level",
212226
"expressions.tests.BasicExpressionsTests.test_annotation_with_deeply_nested_outerref",
213227
"expressions.tests.BasicExpressionsTests.test_boolean_expression_combined",
@@ -297,6 +311,13 @@ def django_test_expected_failures(self):
297311
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_in_subquery",
298312
"annotations.tests.NonAggregateAnnotationTestCase.test_annotation_and_alias_filter_related_in_subquery",
299313
"annotations.tests.NonAggregateAnnotationTestCase.test_empty_expression_annotation",
314+
"aggregation_regress.tests.AggregationTests.test_aggregates_in_where_clause",
315+
"aggregation_regress.tests.AggregationTests.test_aggregates_in_where_clause_pre_eval",
316+
"aggregation_regress.tests.AggregationTests.test_f_expression_annotation",
317+
"aggregation_regress.tests.AggregationTests.test_having_subquery_select",
318+
"aggregation_regress.tests.AggregationTests.test_more_more4",
319+
"aggregation_regress.tests.AggregationTests.test_more_more_more5",
320+
"aggregation_regress.tests.AggregationTests.test_negated_aggregation",
300321
"db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset",
301322
"expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause",
302323
"expressions.tests.FTimeDeltaTests.test_date_subquery_subtraction",
@@ -351,6 +372,7 @@ def django_test_expected_failures(self):
351372
"QuerySet.dates() is not supported on MongoDB.": {
352373
"aggregation.tests.AggregateTestCase.test_dates_with_aggregation",
353374
"annotations.tests.AliasTests.test_dates_alias",
375+
"aggregation_regress.tests.AggregationTests.test_more_more_more2",
354376
"dates.tests.DatesTests.test_dates_trunc_datetime_fields",
355377
"dates.tests.DatesTests.test_related_model_traverse",
356378
},
@@ -368,6 +390,9 @@ def django_test_expected_failures(self):
368390
},
369391
"QuerySet.distinct() is not supported.": {
370392
"aggregation.tests.AggregateTestCase.test_sum_distinct_aggregate",
393+
"aggregation_regress.tests.AggregationTests.test_annotate_distinct_aggregate",
394+
"aggregation_regress.tests.AggregationTests.test_conditional_aggregate_on_complex_condition",
395+
"aggregation_regress.tests.AggregationTests.test_distinct_conditional_aggregate",
371396
"lookup.tests.LookupTests.test_lookup_collision_distinct",
372397
"ordering.tests.OrderingTests.test_orders_nulls_first_on_filtered_subquery",
373398
"queries.tests.ExcludeTest17600.test_exclude_plain_distinct",

0 commit comments

Comments
 (0)