mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-11 23:57:11 +02:00
pytest: configures logging through caplog fixture
This commit is contained in:
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal 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
|
Reference in New Issue
Block a user