Skip to content

Commit 3500799

Browse files
committed
ref validated outputs in toxic lang tests
1 parent 89b6d53 commit 3500799

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/integration_tests/test_validators.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def test_toxic_language(mocker):
395395

396396
output = guard.parse(
397397
llm_output=TOXIC_PARAGRAPH,
398-
)
398+
).validated_output
399399
# Check if the output is empty
400400
assert output == ""
401401

@@ -410,7 +410,7 @@ def test_toxic_language(mocker):
410410

411411
output = guard.parse(
412412
llm_output=PARAGRAPH_WITH_TOXIC_SENTENCES,
413-
)
413+
).validated_output
414414

415415
# Check if the output matches the expected output
416416
assert output == EXPECTED_PARAGRAPH_WITH_TOXIC_SENTENCES
@@ -425,7 +425,7 @@ def test_toxic_language(mocker):
425425

426426
output = guard.parse(
427427
llm_output=NON_TOXIC_PARAGRAPH,
428-
)
428+
).validated_output
429429
# Check if the output is same as the input
430430
assert output == NON_TOXIC_PARAGRAPH
431431

@@ -441,7 +441,7 @@ def test_toxic_language(mocker):
441441

442442
output = guard.parse(
443443
llm_output=NON_TOXIC_PARAGRAPH,
444-
)
444+
).validated_output
445445
# Check if the output is same as the input
446446
assert output == NON_TOXIC_PARAGRAPH
447447

@@ -457,7 +457,7 @@ def test_toxic_language(mocker):
457457

458458
output = guard.parse(
459459
llm_output=NON_TOXIC_PARAGRAPH,
460-
)
460+
).validated_output
461461
# Check if the output matches the expected output
462462
assert output == NON_TOXIC_PARAGRAPH
463463

0 commit comments

Comments
 (0)