From 205f372f76318d8531612bf160bfe72bc319a232 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 11 May 2016 22:08:10 +0200 Subject: [PATCH] server/tests: colorize verbose output --- server/szurubooru/tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/szurubooru/tests/conftest.py b/server/szurubooru/tests/conftest.py index 1043cd3..f53b041 100644 --- a/server/szurubooru/tests/conftest.py +++ b/server/szurubooru/tests/conftest.py @@ -54,6 +54,8 @@ def query_counter(): def query_logger(): if pytest.config.option.verbose > 0: import logging + import coloredlogs + coloredlogs.install(fmt='[%(asctime)-15s] %(name)s %(message)s', isatty=True) logging.basicConfig() logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)