File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ def test_no_boundary(
348
348
content_type : str ,
349
349
) -> None :
350
350
"""
351
- If no boundary is given, a ``BAD_REQUEST `` is returned.
351
+ If no boundary is given, an ``INTERNAL_SERVER_ERROR `` is returned.
352
352
"""
353
353
image_content = high_quality_image .getvalue ()
354
354
date = rfc_1123_date ()
@@ -392,17 +392,12 @@ def test_no_boundary(
392
392
request_body = requests_response .request .body ,
393
393
tell_position = requests_response .raw .tell (),
394
394
)
395
- handle_server_errors (response = vws_response )
396
-
397
- expected_text = (
398
- "java.io.IOException: RESTEASY007550: "
399
- "Unable to get boundary for multipart"
400
- )
395
+ expected_text = "RESTEASY007550: Unable to get boundary for multipart"
401
396
assert requests_response .text == expected_text
402
397
assert_vwq_failure (
403
398
response = vws_response ,
404
- status_code = HTTPStatus .BAD_REQUEST ,
405
- content_type = "text/html;charset=utf-8 " ,
399
+ status_code = HTTPStatus .INTERNAL_SERVER_ERROR ,
400
+ content_type = "application/json " ,
406
401
cache_control = None ,
407
402
www_authenticate = None ,
408
403
connection = "keep-alive" ,
You can’t perform that action at this time.
0 commit comments