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

Method test_explain

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

Source from the content-addressed store, hash-verified

353 self.client.admin.command("configureFailPoint", "maxTimeAlwaysTimeOut", mode="off")
354
355 def test_explain(self):
356 a = self.db.test.find()
357 a.explain()
358 for _ in a:
359 break
360 b = a.explain()
361 self.assertIn("executionStats", b)
362
363 def test_explain_with_read_concern(self):
364 # Do not add readConcern level to explain.

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
explainMethod · 0.45

Tested by

no test coverage detected