How to Add Loguru Support to Pytest in Python
Автор: Florian Dahlitz
Загружено: 2021-11-22
Просмотров: 3472
In this pytest tutorial, you will learn how to loguru support to pytest.
First, we will see how to test log messages using pytest's caplog fixture.
Secondly, we implement the same application using loguru as logging library.
Lastly, a custom pytest fixture is implemented overwriting the built-in caplog fixture and adding support for loguru.
GitHub Repository
https://github.com/DahlitzFlorian/pyt...
SUBSCRIBE to become a Pythonista!
/ @floriandahlitz
Follow me on Twitter!
/ dahlitzf
Check out my website for more!
https://florian-dahlitz.de/become-a-p...
Like what you see? Consider sponsoring me via Patreon!
/ floriandahlitz
~~~~~~~~~~ OUTLINE ~~~~~~~~~~
00:00 Introduction
00:39 Project setup
01:31 Test built-in logging module
08:07 Test loguru library
11:07 Overwrite caplog fixture
#python #pytest #testing
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: