diff --git a/pytest.ini b/pytest.ini index 9990248e9..6e29720ec 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,6 +1,6 @@ [pytest] addopts = -p no:warnings -log_level = DEBUG +log_level = WARNING # The flag below should only be activated in special debug sessions # i.e. the test hangs and we need to see what happened up to that point. diff --git a/tests/test_jailbreak_actions.py b/tests/test_jailbreak_actions.py index 66c492ae5..bd8c74661 100644 --- a/tests/test_jailbreak_actions.py +++ b/tests/test_jailbreak_actions.py @@ -229,6 +229,9 @@ async def test_jailbreak_detection_model_local_import_error(self, monkeypatch, c @pytest.mark.asyncio async def test_jailbreak_detection_model_local_success(self, monkeypatch, caplog): """Test successful local model execution.""" + import logging + + caplog.set_level(logging.INFO) from nemoguardrails.library.jailbreak_detection.actions import ( jailbreak_detection_model, )