File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1384,7 +1384,7 @@ async def test_bedrock_guardrail_post_call_success_hook_no_output_text():
1384
1384
guardrailVersion = "DRAFT"
1385
1385
)
1386
1386
1387
- # Mock Bedrock API response with PII masking
1387
+ # Mock Bedrock API with no output text
1388
1388
mock_bedrock_response = MagicMock ()
1389
1389
mock_bedrock_response .status_code = 200
1390
1390
mock_bedrock_response .json .return_value = {
@@ -1419,4 +1419,6 @@ async def test_bedrock_guardrail_post_call_success_hook_no_output_text():
1419
1419
data = data ,
1420
1420
response = mock_bedrock_response ,
1421
1421
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" )
You can’t perform that action at this time.
0 commit comments