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