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.
This commit is contained in:
Florian Bruhin 2015-11-23 21:50:48 +01:00
parent 0becee05e1
commit 14f4689998

View File

@ -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."""