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

Method configure_fail_point

test/__init__.py:904–910  ·  view source on GitHub ↗
(client, command_args, off=False)

Source from the content-addressed store, hash-verified

902
903 @staticmethod
904 def configure_fail_point(client, command_args, off=False):
905 cmd = {"configureFailPoint": "failCommand"}
906 cmd.update(command_args)
907 if off:
908 cmd["mode"] = "off"
909 cmd.pop("data", None)
910 client.admin.command(cmd)
911
912 @contextmanager
913 def fail_point(self, command_args):

Callers 4

fail_pointMethod · 0.95
set_fail_pointMethod · 0.45
set_fail_pointMethod · 0.45
__set_fail_pointMethod · 0.45

Calls 3

updateMethod · 0.45
popMethod · 0.45
commandMethod · 0.45

Tested by 2

set_fail_pointMethod · 0.36
set_fail_pointMethod · 0.36