Skip to content

Commit 21d9a95

Browse files
committed
allow logging to console in python tests
1 parent c91549c commit 21d9a95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pytest.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ addopts =
2323
# these customizations require the pytest-custom-report plugin
2424
report_passed_verbose = FILLED
2525
report_xpassed_verbose = XFILLED
26+
# Allow logging via logging.debug(), .info(), .warning(), .error() and .critical()
27+
log_cli = True
28+
log_cli_level = INFO
29+
log_cli_format = %(asctime)s %(levelname)s %(filename)s:%(lineno)d - %(message)s
30+
log_cli_date_format = %Y-%m-%d %H:%M:%S
31+
32+
33+
# Note: Never put a comment at the end of an actual line of code here!

0 commit comments

Comments
 (0)