mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
hack: enable debug logging in tests
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Hack to enable debug-level logging when running tests
|
||||
# with `python3 -m unittest discover`
|
||||
|
||||
import sys
|
||||
if 'unittest' in sys.modules:
|
||||
import logging
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format='%(asctime)s %(levelname)-8s %(message)s',
|
||||
datefmt='%Y-%m-%d %H:%M:%S')
|
||||
|
||||
Reference in New Issue
Block a user