Update tests/test_utils_logcfg.py
Run CI Tests / test (push) Successful in 31s

This commit is contained in:
2025-07-28 15:03:48 +02:00
parent 3d56f96f5f
commit 9b8d5e516c
+2 -1
View File
@@ -67,7 +67,8 @@ def test_import_logging_once_per_module():
assert result.returncode == 0, f"Script failed:\n{result.stderr}"
stderr = result.stderr
lines = stderr.splitlines()
for mod in ["json", "math", "io", "random"]:
count = sum(1 for line in stderr if f"importing: {mod}" in line)
count = sum(1 for line in lines if f"importing: {mod}" in line)
assert count == 1, f"Expected 1 import log for '{mod}', found {count}"