Run a single operation in a test.
(self, op)
| 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.""" |
no test coverage detected