Activate a patch, returning any created mock.
(self)
| 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): |