@@ -489,18 +489,18 @@ def test_response_invalid_argument():
489489def test_ensure_ascii_false_with_french_characters ():
490490 data = {"greeting" : "Bonjour, ça va ?" }
491491 response = httpx .Response (200 , json = data )
492- assert "ça va" in response . text , (
493- "ensure_ascii=False should preserve French accented characters"
494- )
492+ assert (
493+ "ça va" in response . text
494+ ), "ensure_ascii=False should preserve French accented characters"
495495 assert response .headers ["Content-Type" ] == "application/json"
496496
497497
498498def test_separators_for_compact_json ():
499499 data = {"clé" : "valeur" , "liste" : [1 , 2 , 3 ]}
500500 response = httpx .Response (200 , json = data )
501- assert response . text == '{"clé":"valeur","liste":[1,2,3]}' , (
502- "separators=(',', ':') should produce a compact representation"
503- )
501+ assert (
502+ response . text == '{"clé":"valeur","liste":[1,2,3]}'
503+ ), "separators=(',', ':') should produce a compact representation"
504504 assert response .headers ["Content-Type" ] == "application/json"
505505
506506
0 commit comments