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

Method get_x

test/test_client.py:1325–1327  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

1323 where_func = delay(timeout_sec + 1)
1324
1325 def get_x(db):
1326 doc = next(db.test.find().where(where_func))
1327 return doc["x"]
1328
1329 self.assertEqual(1, get_x(no_timeout.pymongo_test))
1330 with self.assertRaises(NetworkTimeout):

Callers

nothing calls this directly

Calls 3

nextFunction · 0.90
whereMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected