mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-07-05 19:27:49 +02:00
fix(pc):
This commit is contained in:
@@ -87,7 +87,12 @@ class TestAttackRule:
|
||||
rule = AttackRule(name="test", type="jailbreak", prompt="Test")
|
||||
result = rule.to_dict()
|
||||
assert result == snapshot(
|
||||
{"name": "test", "type": "jailbreak", "prompt": "Test", "severity": "medium"}
|
||||
{
|
||||
"name": "test",
|
||||
"type": "jailbreak",
|
||||
"prompt": "Test",
|
||||
"severity": "medium",
|
||||
}
|
||||
)
|
||||
|
||||
def test_render_prompt_no_variables(self):
|
||||
|
||||
Reference in New Issue
Block a user