test: add logging tests

This commit is contained in:
2026-08-21 10:52:54 +02:00
parent 3c9547adaf
commit 10bbdc7979
2 changed files with 12 additions and 1 deletions
-1
View File
@@ -32,7 +32,6 @@ include-package-data = true
[tool.setuptools.package-data]
aarecommon = [
"config/logging_configs/*.yaml",
"config/beamline_configs/*.yaml",
]
+12
View File
@@ -0,0 +1,12 @@
import logging
from aare.daq.config import setup_logger
def test_handler_levels():
setup_logger("aareDAQ")
assert logging.getLogger("redis_lock").level == logging.WARNING
assert logging.getLogger("unknown").level == 0
setup_logger("unknown")
assert logging.getLogger("unknown").level == logging.DEBUG