Skip to content

Commit 2893780

Browse files
committed
Check output of logger calls.
1 parent 140ad71 commit 2893780

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/snippets/test_logging.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@
1010
logging.error('WOOT')
1111
logging.warning('WARN')
1212

13-
print(f.getvalue())
13+
res = f.getvalue()
14+
15+
assert 'WOOT' in res
16+
assert 'WARN' in res
17+
print(res)
1418

0 commit comments

Comments
 (0)