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:
parent
0becee05e1
commit
14f4689998
@ -217,8 +217,8 @@ class TestInitLog:
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def args(self):
|
def args(self):
|
||||||
"""Fixture providing an argparse namespace for init_log."""
|
"""Fixture providing an argparse namespace for init_log."""
|
||||||
return argparse.Namespace(debug=True, loglevel=logging.DEBUG,
|
return argparse.Namespace(debug=True, loglevel='debug', color=True,
|
||||||
color=True, loglines=10, logfilter="")
|
loglines=10, logfilter="")
|
||||||
|
|
||||||
def test_stderr_none(self, args):
|
def test_stderr_none(self, args):
|
||||||
"""Test init_log with sys.stderr = None."""
|
"""Test init_log with sys.stderr = None."""
|
||||||
|
Loading…
Reference in New Issue
Block a user