(self, obj, field, func)
| 28 | self.disable_clip = disable_clip |
| 29 | |
| 30 | def replace(self, obj, field, func): |
| 31 | original = getattr(obj, field, None) |
| 32 | if original is None: |
| 33 | return None |
| 34 | |
| 35 | self.replaced.append((obj, field, original)) |
| 36 | setattr(obj, field, func) |
| 37 | |
| 38 | return original |
| 39 | |
| 40 | def __enter__(self): |
| 41 | def do_nothing(*args, **kwargs): |
no outgoing calls
no test coverage detected