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

This commit is contained in:
2025-07-28 14:25:30 +02:00
parent 554113c552
commit 1ce81b4166
+2 -4
View File
@@ -4,6 +4,7 @@ from logzero import logger as log
import pytest
import sys
import os
import importlib
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from slic.utils.logcfg import *
@@ -55,8 +56,5 @@ def test_import_logging_multiple_modules(capfd):
for mod in modules_to_test:
assert f"importing: {mod}" in err, f"Missing import log for {mod}"
assert err.count("importing: json") == 1
assert err.count("importing: math") == 1
assert err.count("importing: random") == 1
assert err.count(f"importing: {mod}") == 1