(self)
| 361 | self.assertIn("executionStats", b) |
| 362 | |
| 363 | def test_explain_with_read_concern(self): |
| 364 | # Do not add readConcern level to explain. |
| 365 | listener = AllowListEventListener("explain") |
| 366 | client = self.rs_or_single_client(event_listeners=[listener]) |
| 367 | coll = client.pymongo_test.test.with_options(read_concern=ReadConcern(level="local")) |
| 368 | self.assertTrue(coll.find().explain()) |
| 369 | started = listener.started_events |
| 370 | self.assertEqual(len(started), 1) |
| 371 | self.assertNotIn("readConcern", started[0].command) |
| 372 | |
| 373 | # https://github.com/mongodb/specifications/blob/master/source/crud/tests/README.md#14-explain-helpers-allow-users-to-specify-maxtimems |
| 374 | def test_explain_csot(self): |
nothing calls this directly
no test coverage detected