Skip to content

Commit 2764cef

Browse files
committed
tests
1 parent 6e964c9 commit 2764cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
from guardrails import Guard
55
import pytest
6-
from validator import ValidatorTemplate
6+
from validator import ShieldGemma2B
77

88
# We use 'exception' as the validator's fail action,
99
# so we expect failures to always raise an Exception
1010
# Learn more about corrective actions here:
1111
# https://www.guardrailsai.com/docs/concepts/output/#%EF%B8%8F-specifying-corrective-actions
12-
guard = Guard.from_string(validators=[ValidatorTemplate(arg_1="arg_1", arg_2="arg_2", on_fail="exception")])
12+
guard = Guard.from_string(validators=[ShieldGemma2B(arg_1="arg_1", arg_2="arg_2", on_fail="exception")])
1313

1414
def test_pass():
1515
test_output = "pass"

0 commit comments

Comments
 (0)