@@ -12,7 +12,7 @@ class GISFeatures:
1212
1313
1414class DatabaseFeatures (GISFeatures , BaseDatabaseFeatures ):
15- minimum_database_version = (6 , 0 )
15+ minimum_database_version = (7 , 0 )
1616 allow_sliced_subqueries_with_in = False
1717 allows_multiple_constraints_on_same_fields = False
1818 can_create_inline_fk = False
@@ -51,7 +51,7 @@ class DatabaseFeatures(GISFeatures, BaseDatabaseFeatures):
5151 supports_unspecified_pk = True
5252 uses_savepoints = False
5353
54- _django_test_expected_failures = {
54+ django_test_expected_failures = {
5555 # $concat only supports strings, not int
5656 "db_functions.text.test_concat.ConcatTests.test_concat_non_str" ,
5757 # QuerySet.order_by() with annotation transform doesn't work:
@@ -100,23 +100,6 @@ class DatabaseFeatures(GISFeatures, BaseDatabaseFeatures):
100100 # To debug: https://github.com/mongodb/django-mongodb-backend/issues/362
101101 "constraints.tests.UniqueConstraintTests.test_validate_case_when" ,
102102 }
103- # $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
104- _django_test_expected_failures_bitwise = {
105- "expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_and" ,
106- "expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_or" ,
107- "expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor" ,
108- "expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor_null" ,
109- "expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor_right_null" ,
110- "expressions.tests.ExpressionOperatorTests.test_lefthand_transformed_field_bitwise_or" ,
111- }
112-
113- @cached_property
114- def django_test_expected_failures (self ):
115- expected_failures = super ().django_test_expected_failures
116- expected_failures .update (self ._django_test_expected_failures )
117- if not self .is_mongodb_6_3 :
118- expected_failures .update (self ._django_test_expected_failures_bitwise )
119- return expected_failures
120103
121104 _django_test_skips = {
122105 "Database defaults aren't supported by MongoDB." : {
0 commit comments