@@ -251,9 +251,7 @@ async def test_fiddler_safety_request_format_user_message(monkeypatch):
251251 assert "data" in request_payload
252252 assert request_payload ["data" ]["input" ] == "Hello, how are you?"
253253 assert "prompt" not in request_payload ["data" ] # Old format should not be present
254- assert not isinstance (
255- request_payload ["data" ]["input" ], list
256- ) # Should be string, not list
254+ assert not isinstance (request_payload ["data" ]["input" ], list ) # Should be string, not list
257255
258256
259257@pytest .mark .unit
@@ -315,9 +313,7 @@ async def test_fiddler_safety_request_format_bot_message(monkeypatch):
315313 assert "data" in request_payload
316314 assert request_payload ["data" ]["input" ] == "I can help you with that."
317315 assert "prompt" not in request_payload ["data" ] # Old format should not be present
318- assert not isinstance (
319- request_payload ["data" ]["input" ], list
320- ) # Should be string, not list
316+ assert not isinstance (request_payload ["data" ]["input" ], list ) # Should be string, not list
321317
322318
323319@pytest .mark .unit
@@ -367,10 +363,7 @@ async def test_fiddler_faithfulness_request_format(monkeypatch):
367363 request_payload = call_args [1 ]["json" ]
368364 assert "data" in request_payload
369365 assert request_payload ["data" ]["response" ] == "Shipping takes 2 days"
370- assert (
371- request_payload ["data" ]["context" ]
372- == "Shipping takes at least 3 days. We ship worldwide."
373- )
366+ assert request_payload ["data" ]["context" ] == "Shipping takes at least 3 days. We ship worldwide."
374367 # Verify old format (lists) is not present
375368 assert not isinstance (request_payload ["data" ].get ("response" ), list )
376369 assert not isinstance (request_payload ["data" ].get ("context" ), list )
0 commit comments