Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorossi5 committed Oct 21, 2024
1 parent 67b5054 commit 79d2338
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_config_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ def logging_wrap_function(logger_object):
)
def test_logger_levels(monkeypatch, caplog, loglevel, expected_messages):
monkeypatch.setenv("QIBO_CLIENT_LOGGER_LEVEL", loglevel)
caplog.set_level(loglevel)

from qibo_client.config_logging import logger

caplog.set_level(loglevel, MOD)

logging_wrap_function(logger)

assert caplog.messages == expected_messages

0 comments on commit 79d2338

Please sign in to comment.