Загрузка страницы

How to use Python's unittest.mock.patch

How to use (and where to apply) Python's unittest.mock.patch in your test suites. In this video I show where to patch, and three ways of applying mock.patch: as a decorator, as a context manager, and inline using mock.patch.start() and mock.patch.stop().

Further reading:

Python docs on unittest.mock.patch: https://docs.python.org/3/library/unittest.mock.html#patch
Where to patch: https://docs.python.org/3/library/unittest.mock.html#where-to-patch

Видео How to use Python's unittest.mock.patch канала redshiftzero
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 декабря 2019 г. 22:46:19
00:08:12
Яндекс.Метрика