MCPcopy Create free account
hub / github.com/RustPython/RustPython / start

Method start

Lib/unittest/mock.py:1982–1986  ·  view source on GitHub ↗

Activate a patch, returning any created mock.

(self)

Source from the content-addressed store, hash-verified

1980
1981
1982 def start(self):
1983 """Activate a patch, returning any created mock."""
1984 result = self.__enter__()
1985 _patch._active_patches.append(self)
1986 return result
1987
1988
1989 def stop(self):

Callers

nothing calls this directly

Calls 2

__enter__Method · 0.95
appendMethod · 0.45

Tested by

no test coverage detected