From 14f468999884337afb36e55114ec7909c7910d89 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 23 Nov 2015 21:50:48 +0100 Subject: [PATCH] tests: Fix TestInitLog. This worked before b0d4ebe because --debug was given and the "args.loglevel.upper()" part was never executed. However, loglevel is expected as a string, not as an int. --- tests/unit/utils/test_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/utils/test_log.py b/tests/unit/utils/test_log.py index d31166d21..9b579fef0 100644 --- a/tests/unit/utils/test_log.py +++ b/tests/unit/utils/test_log.py @@ -217,8 +217,8 @@ class TestInitLog: @pytest.fixture def args(self): """Fixture providing an argparse namespace for init_log.""" - return argparse.Namespace(debug=True, loglevel=logging.DEBUG, - color=True, loglines=10, logfilter="") + return argparse.Namespace(debug=True, loglevel='debug', color=True, + loglines=10, logfilter="") def test_stderr_none(self, args): """Test init_log with sys.stderr = None."""