Skip to content

Commit 6988704

Browse files
committed
🎨 Emit logs to stdout for testing
1 parent dad55a9 commit 6988704

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"""For testing."""
22

3-
# 3rd party
3+
import sys
4+
45
import pytest
6+
from twisted.python import log
57

68
from pywwa import CTX, CTX_DEFAULTS
79
from pywwa.database import get_dbconnc
@@ -10,6 +12,7 @@
1012
# pytest + twisted + click == too much magic for poor me
1113
# So, this effectively disables reactor.stop() from working
1214
CTX_DEFAULTS["shutdown_delay"] = 1800
15+
log.startLogging(sys.stdout)
1316

1417

1518
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)