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

Method run_operation

test/test_connection_monitoring.py:157–165  ·  view source on GitHub ↗

Run a single operation in a test.

(self, op)

Source from the content-addressed store, hash-verified

155 self.pool.close()
156
157 def run_operation(self, op):
158 """Run a single operation in a test."""
159 op_name = camel_to_snake(op["name"])
160 thread = op["thread"]
161 meth = getattr(self, op_name)
162 if thread:
163 self.targets[thread].schedule(lambda: meth(op))
164 else:
165 meth(op)
166
167 def run_operations(self, ops):
168 """Run a test's operations."""

Callers 1

run_operationsMethod · 0.95

Calls 2

camel_to_snakeFunction · 0.90
scheduleMethod · 0.45

Tested by

no test coverage detected