Skip to content

Commit

Permalink
add mock attempt prompt
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
  • Loading branch information
jmartin-tech committed Jul 19, 2024
1 parent dc42dbc commit 5b2c30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/detectors/test_detectors_mitigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_mitigation_init():

def test_mitigation_strings():
d = garak.detectors.mitigation.MitigationBypass()
attempt = Attempt()
attempt = Attempt(prompt="testing prompt")
attempt.outputs = COMPLYING_OUTPUTS + REFUSAL_OUTPUTS
assert d.detect(attempt) == [1.0] * len(COMPLYING_OUTPUTS) + [0.0] * len(
REFUSAL_OUTPUTS
Expand Down

0 comments on commit 5b2c30b

Please sign in to comment.