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

Method test_explain

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

Source from the content-addressed store, hash-verified

1580 self.assertIsNotNone(find_cmd["readConcern"]["atClusterTime"])
1581
1582 def test_explain(self):
1583 c = self.db.test
1584 c.insert_one({})
1585 explanation = c.find_raw_batches().explain()
1586 self.assertIsInstance(explanation, dict)
1587
1588 def test_empty(self):
1589 self.db.test.drop()

Callers

nothing calls this directly

Calls 3

insert_oneMethod · 0.45
explainMethod · 0.45
find_raw_batchesMethod · 0.45

Tested by

no test coverage detected