MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / setUp

Method setUp

test/test_transactions.py:422–427  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

420
421class TestTransactionsConvenientAPI(TransactionsBase):
422 def setUp(self) -> None:
423 super().setUp()
424 self.mongos_clients = []
425 if client_context.supports_transactions():
426 for address in client_context.mongoses:
427 self.mongos_clients.append(self.single_client("{}:{}".format(*address)))
428
429 def set_fail_point(self, command_args):
430 clients = self.mongos_clients if self.mongos_clients else [self.client]

Callers

nothing calls this directly

Calls 2

single_clientMethod · 0.80
supports_transactionsMethod · 0.45

Tested by

no test coverage detected