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

Method __set_fail_point

test/unified_format.py:1086–1091  ·  view source on GitHub ↗
(self, client, command_args)

Source from the content-addressed store, hash-verified

1084 return None
1085
1086 def __set_fail_point(self, client, command_args):
1087 if not client_context.test_commands_enabled:
1088 self.skipTest("Test commands must be enabled")
1089
1090 self.configure_fail_point(client, command_args)
1091 self.addCleanup(self.configure_fail_point, client, command_args, off=True)
1092
1093 def _testOperation_failPoint(self, spec):
1094 self.__set_fail_point(

Calls 2

addCleanupMethod · 0.80
configure_fail_pointMethod · 0.45

Tested by

no test coverage detected