@@ -69,24 +69,24 @@ def non_enterprise_response(command):
69
69
raise Exception ("Unexpected command" )
70
70
71
71
def test_supported_on_atlas (self ):
72
- """Supported on MongoDB 7 .0+ Atlas replica set or sharded cluster."""
72
+ """Supported on MongoDB 8 .0+ Atlas replica set or sharded cluster."""
73
73
with (
74
74
patch (
75
75
"pymongo.synchronous.database.Database.command" , wraps = self .non_enterprise_response
76
76
),
77
77
patch ("django.db.connection.features.supports_atlas_search" , True ),
78
78
patch ("django.db.connection.features._supports_transactions" , True ),
79
- patch ("django.db.connection.features.is_mongodb_7_0 " , True ),
79
+ patch ("django.db.connection.features.is_mongodb_8_0 " , True ),
80
80
):
81
81
self .assertIs (connection .features .supports_queryable_encryption , True )
82
82
83
83
def test_supported_on_enterprise (self ):
84
- """Supported on MongoDB 7 .0+ Enterprise replica set or sharded cluster."""
84
+ """Supported on MongoDB 8 .0+ Enterprise replica set or sharded cluster."""
85
85
with (
86
86
patch ("pymongo.synchronous.database.Database.command" , wraps = self .enterprise_response ),
87
87
patch ("django.db.connection.features.supports_atlas_search" , False ),
88
88
patch ("django.db.connection.features._supports_transactions" , True ),
89
- patch ("django.db.connection.features.is_mongodb_7_0 " , True ),
89
+ patch ("django.db.connection.features.is_mongodb_8_0 " , True ),
90
90
):
91
91
self .assertIs (connection .features .supports_queryable_encryption , True )
92
92
@@ -98,7 +98,7 @@ def test_atlas_or_enterprise_required(self):
98
98
),
99
99
patch ("django.db.connection.features.supports_atlas_search" , False ),
100
100
patch ("django.db.connection.features._supports_transactions" , True ),
101
- patch ("django.db.connection.features.is_mongodb_7_0 " , True ),
101
+ patch ("django.db.connection.features.is_mongodb_8_0 " , True ),
102
102
):
103
103
self .assertIs (connection .features .supports_queryable_encryption , False )
104
104
@@ -111,16 +111,16 @@ def test_transactions_required(self):
111
111
patch ("pymongo.synchronous.database.Database.command" , wraps = self .enterprise_response ),
112
112
patch ("django.db.connection.features.supports_atlas_search" , False ),
113
113
patch ("django.db.connection.features._supports_transactions" , False ),
114
- patch ("django.db.connection.features.is_mongodb_7_0 " , True ),
114
+ patch ("django.db.connection.features.is_mongodb_8_0 " , True ),
115
115
):
116
116
self .assertIs (connection .features .supports_queryable_encryption , False )
117
117
118
- def test_mongodb_7_0_required (self ):
119
- """Not supported on MongoDB < 7 .0"""
118
+ def test_mongodb_8_0_required (self ):
119
+ """Not supported on MongoDB < 8 .0"""
120
120
with (
121
121
patch ("pymongo.synchronous.database.Database.command" , wraps = self .enterprise_response ),
122
122
patch ("django.db.connection.features.supports_atlas_search" , False ),
123
123
patch ("django.db.connection.features._supports_transactions" , True ),
124
- patch ("django.db.connection.features.is_mongodb_7_0 " , False ),
124
+ patch ("django.db.connection.features.is_mongodb_8_0 " , False ),
125
125
):
126
126
self .assertIs (connection .features .supports_queryable_encryption , False )
0 commit comments