Skip to content
Snippets Groups Projects
Commit e93eb1b0 authored by ulif's avatar ulif
Browse files

Fix tests to reflect logger clean-up.

Tests that check logger states explicitly, have to setup logging from
now on, as any existing setups are ripped-off automatically now.
parent d59c638b
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,14 @@ def test_logger_exists():
def test_logger_has_handler():
# the logger has at least one handler
configure(0)
assert len(logger.handlers) > 0
def test_get_logger_by_name():
# we can get a logger directly from std lib
my_logger = logging.getLogger("ulif.diceware")
configure(0)
assert len(my_logger.handlers) > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment