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

Method predicate

test/test_client.py:1539–1540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1537 client.test_lazy_connect_w0.test.insert_one({})
1538
1539 def predicate():
1540 return client.test_lazy_connect_w0.test.count_documents({}) == 1
1541
1542 wait_until(predicate, "find one document")
1543

Callers

nothing calls this directly

Calls 3

count_documentsMethod · 0.45
getMethod · 0.45
find_oneMethod · 0.45

Tested by

no test coverage detected