From 8f6fa5e9ffe0580407c8a999e35171664b4010b8 Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Sun, 10 Sep 2017 18:44:54 -0700 Subject: [PATCH] old logging cleanup --- tests/test_logging.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/test_logging.py b/tests/test_logging.py index d6911d86..3d75dbe0 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -1,7 +1,6 @@ import uuid from importlib import reload -from sanic.config import LOGGING from sanic.response import text from sanic import Sanic from io import StringIO @@ -38,20 +37,3 @@ def test_log(): request, response = app.test_client.get('/') log_text = log_stream.getvalue() assert rand_string in log_text - - -def test_default_log_fmt(): - - reset_logging() - Sanic() - for fmt in [h.formatter for h in logging.getLogger('sanic').handlers]: - assert fmt._fmt == LOGGING['formatters']['simple']['format'] - - reset_logging() - Sanic(log_config=None) - for fmt in [h.formatter for h in logging.getLogger('sanic').handlers]: - assert fmt._fmt == "%(asctime)s: %(levelname)s: %(message)s" - - -if __name__ == "__main__": - test_log()