pytest: configures logging through caplog fixture

This commit is contained in:
Mose Müller
2024-07-30 07:33:01 +02:00
parent 8bf0b771fa
commit a1da332dba
8 changed files with 11 additions and 11 deletions

11
tests/conftest.py Normal file
View File

@ -0,0 +1,11 @@
import logging
import pytest
@pytest.fixture
def caplog(caplog: pytest.LogCaptureFixture):
logger = logging.getLogger("pydase")
logger.propagate = True
yield caplog