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

Method tearDown

test/test_retryable_writes.py:167–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 )
166
167 def tearDown(self):
168 if client_context.is_rs and client_context.test_commands_enabled:
169 self.client.admin.command(
170 SON([("configureFailPoint", "onPrimaryTransactionalWrite"), ("mode", "off")])
171 )
172 self.knobs.disable()
173 super().tearDown()
174
175 def test_supported_single_statement_no_retry(self):
176 listener = OvertCommandListener()

Callers 1

tearDownMethod · 0.45

Calls 3

SONClass · 0.90
commandMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected