This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user