Skip to content

Commit d441a12

Browse files
committed
PYTHON-2453 ServerApi is only supported on MongoDB 4.7+
1 parent fbae227 commit d441a12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_versioned_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def assertServerApiOnlyInFirstCommand(self, events):
7373
for event in events[1:]:
7474
self.assertNoServerApi(event)
7575

76+
@client_context.require_version_min(4, 7)
7677
def test_command_options(self):
7778
listener = OvertCommandListener()
7879
client = rs_or_single_client(server_api=ServerApi('1'),
@@ -89,6 +90,7 @@ def test_command_options(self):
8990
else:
9091
self.assertServerApi(event)
9192

93+
@client_context.require_version_min(4, 7)
9294
@client_context.require_transactions
9395
def test_command_options_txn(self):
9496
listener = OvertCommandListener()

0 commit comments

Comments
 (0)