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

Method setUp

test/test_encryption.py:3573–3583  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3571 MONGOCRYPTD_PORT = 27020
3572
3573 def setUp(self) -> None:
3574 super().setUp()
3575 start_mongocryptd(self.MONGOCRYPTD_PORT)
3576
3577 self.listener = OvertCommandListener()
3578 self.mongocryptd_client = self.simple_client(
3579 f"mongodb://localhost:{self.MONGOCRYPTD_PORT}", event_listeners=[self.listener]
3580 )
3581
3582 hello = self.mongocryptd_client.db.command("hello")
3583 self.assertNotIn("logicalSessionTimeoutMinutes", hello)
3584
3585 def test_implicit_session_ignored_when_unsupported(self):
3586 self.listener.reset()

Callers

nothing calls this directly

Calls 5

start_mongocryptdFunction · 0.70
setUpMethod · 0.45
simple_clientMethod · 0.45
commandMethod · 0.45

Tested by

no test coverage detected