@@ -68,15 +68,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
6868 "aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
6969 "aggregation_regress.tests.AggregationTests.test_annotation_disjunction" ,
7070 "aggregation_regress.tests.AggregationTests.test_decimal_aggregate_annotation_filter" ,
71- # QuerySet.extra(select=...) should raise NotSupportedError instead of:
72- # 'RawSQL' object has no attribute 'as_mql'.
73- "aggregation_regress.tests.AggregationTests.test_annotate_with_extra" ,
74- "aggregation_regress.tests.AggregationTests.test_annotation" ,
75- "aggregation_regress.tests.AggregationTests.test_more_more3" ,
76- "aggregation_regress.tests.AggregationTests.test_more_more_more3" ,
77- # QuerySet.extra(where=...) should raise NotSupportedError instead of:
78- # 'ExtraWhere' object has no attribute 'as_mql'.
79- "many_to_one.tests.ManyToOneTests.test_selects" ,
8071 # Incorrect JOIN with GenericRelation gives incorrect results.
8172 "aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation" ,
8273 "generic_relations.tests.GenericRelationsTests.test_queries_content_type_restriction" ,
@@ -673,6 +664,17 @@ def django_test_expected_failures(self):
673664 "backends.base.test_base.DatabaseWrapperLoggingTests" ,
674665 "migrations.test_operations.OperationTests.test_run_python_atomic" ,
675666 },
667+ "QuerySet extras are not supported on MongoDB" : {
668+ # QuerySet.extra(select=...) raises NotSupportedError instead of:
669+ # 'RawSQL' object has no attribute 'as_mql'.
670+ "aggregation_regress.tests.AggregationTests.test_annotate_with_extra" ,
671+ "aggregation_regress.tests.AggregationTests.test_annotation" ,
672+ "aggregation_regress.tests.AggregationTests.test_more_more3" ,
673+ "aggregation_regress.tests.AggregationTests.test_more_more_more3" ,
674+ # QuerySet.extra(where=...) should raise NotSupportedError instead of:
675+ # 'ExtraWhere' object has no attribute 'as_mql'.
676+ "many_to_one.tests.ManyToOneTests.test_selects" ,
677+ },
676678 }
677679
678680 @cached_property
0 commit comments