Skip to content

Commit 69e7257

Browse files
committed
fix test
1 parent ded2e44 commit 69e7257

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/asynchronous/test_transactions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ async def test_transaction_direct_connection(self):
375375
async def find(*args, **kwargs):
376376
return coll.find(*args, **kwargs)
377377

378+
async def find_raw_batches(*args, **kwargs):
379+
return coll.find_raw_batches(*args, **kwargs)
380+
378381
ops = [
379382
(coll.bulk_write, [[InsertOne[dict]({})]]),
380383
(coll.insert_one, [{}]),
@@ -393,7 +396,7 @@ async def find(*args, **kwargs):
393396
(coll.aggregate, [[]]),
394397
(find, [{}]),
395398
(coll.aggregate_raw_batches, [[]]),
396-
(coll.find_raw_batches, [{}]),
399+
(find_raw_batches, [{}]),
397400
(coll.database.command, ["find", coll.name]),
398401
]
399402
for f, args in ops:

test/test_transactions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ def test_transaction_direct_connection(self):
371371
def find(*args, **kwargs):
372372
return coll.find(*args, **kwargs)
373373

374+
def find_raw_batches(*args, **kwargs):
375+
return coll.find_raw_batches(*args, **kwargs)
376+
374377
ops = [
375378
(coll.bulk_write, [[InsertOne[dict]({})]]),
376379
(coll.insert_one, [{}]),
@@ -389,7 +392,7 @@ def find(*args, **kwargs):
389392
(coll.aggregate, [[]]),
390393
(find, [{}]),
391394
(coll.aggregate_raw_batches, [[]]),
392-
(coll.find_raw_batches, [{}]),
395+
(find_raw_batches, [{}]),
393396
(coll.database.command, ["find", coll.name]),
394397
]
395398
for f, args in ops:

0 commit comments

Comments
 (0)