Skip to content

Commit b6c0dbd

Browse files
committed
fix: add test covering logging constant
1 parent a85aecd commit b6c0dbd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/functional/test_logger.py

+9
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,12 @@ def test_logger_level_not_set(stdout):
324324

325325
# THEN we should default to INFO
326326
assert logger.level == logging.INFO
327+
328+
329+
def test_logger_level_as_int(stdout):
330+
# GIVEN a Loggers is initialized
331+
# WHEN log level is inst
332+
logger = Logger(level=logging.INFO)
333+
334+
# THEN we should default to INFO
335+
assert logger.level == logging.INFO

0 commit comments

Comments
 (0)