(func, mock, skipfirst, instance=False)
| 127 | |
| 128 | |
| 129 | def _check_signature(func, mock, skipfirst, instance=False): |
| 130 | sig = _get_signature_object(func, instance, skipfirst) |
| 131 | if sig is None: |
| 132 | return |
| 133 | func, sig = sig |
| 134 | def checksig(self, /, *args, **kwargs): |
| 135 | sig.bind(*args, **kwargs) |
| 136 | _copy_func_details(func, checksig) |
| 137 | type(mock)._mock_check_sig = checksig |
| 138 | type(mock).__signature__ = sig |
| 139 | |
| 140 | |
| 141 | def _copy_func_details(func, funcopy): |
no test coverage detected
searching dependent graphs…