Descripción
Sintaxis
unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)
Parámetros
- autospec,
- create,
- kwargs,
- new,
- new_callable,
- spec,
- spec_set,
- target,
Ejemplo
unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs)