File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments