MCPcopy Index your code
hub / github.com/RustPython/RustPython / copy

Method copy

Lib/unittest/mock.py:1371–1381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1369
1370
1371 def copy(self):
1372 patcher = _patch(
1373 self.getter, self.attribute, self.new, self.spec,
1374 self.create, self.spec_set,
1375 self.autospec, self.new_callable, self.kwargs
1376 )
1377 patcher.attribute_name = self.attribute_name
1378 patcher.additional_patchers = [
1379 p.copy() for p in self.additional_patchers
1380 ]
1381 return patcher
1382
1383
1384 def __call__(self, func):

Callers 2

decorate_classMethod · 0.95
_patch_dictMethod · 0.45

Calls 1

_patchClass · 0.70

Tested by

no test coverage detected