(obj)
| 83 | |
| 84 | |
| 85 | def _extract_mock(obj): |
| 86 | # Autospecced functions will return a FunctionType with "mock" attribute |
| 87 | # which is the actual mock object that needs to be used. |
| 88 | if isinstance(obj, FunctionTypes) and hasattr(obj, 'mock'): |
| 89 | return obj.mock |
| 90 | else: |
| 91 | return obj |
| 92 | |
| 93 | |
| 94 | def _get_signature_object(func, as_instance, eat_self): |
no outgoing calls
no test coverage detected
searching dependent graphs…