Commit 54cee5a6 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Disable setLevel on loggging Logger and Handler for tests.

parent 595fcef2
Pipeline #85444 passed with stages
in 23 minutes and 15 seconds
......@@ -61,8 +61,10 @@ def monkeysession(request):
@pytest.fixture(scope='session', autouse=True)
def nomad_logging():
def nomad_logging(monkeysession):
utils.set_console_log_level(test_log_level)
monkeysession.setattr('logging.Logger.setLevel', lambda *args, **kwargs: None)
monkeysession.setattr('logging.Handler.setLevel', lambda *args, **kwargs: None)
@pytest.fixture(scope='session', autouse=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment