MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_get_more

Method test_get_more

test/test_cursor.py:1107–1111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1105 self.db.test.find().collection = "hello" # type: ignore
1106
1107 def test_get_more(self):
1108 db = self.db
1109 db.drop_collection("test")
1110 db.test.insert_many([{"i": i} for i in range(10)])
1111 self.assertEqual(10, len(db.test.find().batch_size(5).to_list()))
1112
1113 def test_tailable(self):
1114 db = self.db

Callers

nothing calls this directly

Calls 5

drop_collectionMethod · 0.45
insert_manyMethod · 0.45
to_listMethod · 0.45
batch_sizeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected