Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import logging
|
||||
|
||||
from kanta import configure_logging, log_change
|
||||
from kanta.logging import logger
|
||||
|
||||
|
||||
def test_configure_logging():
|
||||
configure_logging()
|
||||
assert logger.level == logging.INFO
|
||||
|
||||
|
||||
def test_log_change_no_diff(capsys):
|
||||
logger.handlers.clear()
|
||||
configure_logging()
|
||||
log_change("test", {})
|
||||
captured = capsys.readouterr()
|
||||
assert "test" in captured.err
|
||||
Reference in New Issue
Block a user