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

Also test untouched logger config.

Passing in ``None``, should result in no logger changes.
parent 1038b038
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,8 @@ def test_get_logger_by_name(): ...@@ -21,6 +21,8 @@ def test_get_logger_by_name():
def test_configure(): def test_configure():
# we can configure the logger. # we can configure the logger.
my_logger = logging.getLogger("ulif.diceware") my_logger = logging.getLogger("ulif.diceware")
configure(None)
assert my_logger.level == 0
configure(0) configure(0)
assert my_logger.level == logging.INFO assert my_logger.level == logging.INFO
configure(2) configure(2)
......
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