Skip to content

Commit 8e5efd2

Browse files
committed
Fix comment
1 parent d6be26d commit 8e5efd2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/guardrails_tests/test_bedrock_guardrails.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ async def test_bedrock_guardrail_post_call_success_hook_no_output_text():
13841384
guardrailVersion="DRAFT"
13851385
)
13861386

1387-
# Mock Bedrock API response with PII masking
1387+
# Mock Bedrock API with no output text
13881388
mock_bedrock_response = MagicMock()
13891389
mock_bedrock_response.status_code = 200
13901390
mock_bedrock_response.json.return_value = {
@@ -1419,4 +1419,6 @@ async def test_bedrock_guardrail_post_call_success_hook_no_output_text():
14191419
data=data,
14201420
response=mock_bedrock_response,
14211421
user_api_key_dict=mock_user_api_key_dict,
1422-
)
1422+
)
1423+
# If no error is raised, then the test passes
1424+
print("✅ No output text in response test passed")

0 commit comments

Comments
 (0)