MCPcopy Index your code
hub / github.com/python/cpython / start

Method start

Lib/unittest/mock.py:1989–1993  ·  view source on GitHub ↗

Activate a patch, returning any created mock.

(self)

Source from the content-addressed store, hash-verified

1987
1988
1989 def start(self):
1990 """Activate a patch, returning any created mock."""
1991 result = self.__enter__()
1992 _patch._active_patches.append(self)
1993 return result
1994
1995
1996 def stop(self):

Callers

nothing calls this directly

Calls 2

__enter__Method · 0.95
appendMethod · 0.45

Tested by

no test coverage detected