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

Method test_explain_command

test/test_collation.py:164–170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 self.assertCollationInLastCommand()
163
164 def test_explain_command(self):
165 self.listener.reset()
166 self.db.test.find(collation=self.collation).explain()
167 # The collation should be part of the explained command.
168 self.assertEqual(
169 self.collation.document, self.last_command_started()["explain"]["collation"]
170 )
171
172 def test_delete(self):
173 self.db.test.delete_one({"foo": 42}, collation=self.collation)

Callers

nothing calls this directly

Calls 4

last_command_startedMethod · 0.95
resetMethod · 0.45
explainMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected