Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions tests/test_jailbreak_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down