PYTHON-2421 Stop testing geoSearch/geoHaystack on MongoDB 4.5+ (#512)

This commit is contained in:
Shane Harvey 2020-11-05 16:22:23 -08:00 committed by GitHub
parent c92e5520b5
commit 98205b8384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,6 +450,8 @@ class TestCollection(IntegrationTest):
index_info = db.test.index_information()['loc_2d']
self.assertEqual([('loc', '2d')], index_info['key'])
# geoSearch was deprecated in 4.4 and removed in 5.0
@client_context.require_version_max(4, 5)
@client_context.require_no_mongos
def test_index_haystack(self):
db = self.db