@@ -68,15 +68,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
68
68
"aggregation.tests.AggregateTestCase.test_reverse_fkey_annotate" ,
69
69
"aggregation_regress.tests.AggregationTests.test_annotation_disjunction" ,
70
70
"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" ,
80
71
# Incorrect JOIN with GenericRelation gives incorrect results.
81
72
"aggregation_regress.tests.AggregationTests.test_aggregation_with_generic_reverse_relation" ,
82
73
"generic_relations.tests.GenericRelationsTests.test_queries_content_type_restriction" ,
@@ -673,6 +664,17 @@ def django_test_expected_failures(self):
673
664
"backends.base.test_base.DatabaseWrapperLoggingTests" ,
674
665
"migrations.test_operations.OperationTests.test_run_python_atomic" ,
675
666
},
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
+ },
676
678
}
677
679
678
680
@cached_property
0 commit comments