MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / get_x

Method get_x

test/asynchronous/test_client.py:1362–1364  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

1360 where_func = delay(timeout_sec + 1)
1361
1362 async def get_x(db):
1363 doc = await anext(db.test.find().where(where_func))
1364 return doc["x"]
1365
1366 self.assertEqual(1, await get_x(no_timeout.pymongo_test))
1367 with self.assertRaises(NetworkTimeout):

Callers

nothing calls this directly

Calls 3

anextFunction · 0.90
whereMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected