Skip to content

Commit c228769

Browse files
committed
Fix to_list typo
1 parent 0dfb262 commit c228769

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_read_preferences.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ async def test_mongos(self):
682682
results = await qcoll.find().sort([("_id", 1)]).to_list()
683683
self.assertEqual(first_id, results[0]["_id"])
684684
self.assertEqual(last_id, results[-1]["_id"])
685-
results = await qcoll.find().sort([("_id", -1)]).toList()
685+
results = await qcoll.find().sort([("_id", -1)]).to_list()
686686
self.assertEqual(first_id, results[-1]["_id"])
687687
self.assertEqual(last_id, results[0]["_id"])
688688

test/test_read_preferences.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ def test_mongos(self):
662662
results = qcoll.find().sort([("_id", 1)]).to_list()
663663
self.assertEqual(first_id, results[0]["_id"])
664664
self.assertEqual(last_id, results[-1]["_id"])
665-
results = qcoll.find().sort([("_id", -1)]).toList()
665+
results = qcoll.find().sort([("_id", -1)]).to_list()
666666
self.assertEqual(first_id, results[-1]["_id"])
667667
self.assertEqual(last_id, results[0]["_id"])
668668

0 commit comments

Comments
 (0)