mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-17 17:39:25 +01: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