File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
src/mock_vws/_query_validators Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -612,10 +612,9 @@ def __init__(self) -> None:
612612 raised.
613613 """
614614 super ().__init__ ()
615- self .status_code = HTTPStatus .BAD_REQUEST
615+ self .status_code = HTTPStatus .INTERNAL_SERVER_ERROR
616616 self .response_text = (
617- "java.io.IOException: RESTEASY007550: "
618- "Unable to get boundary for multipart"
617+ "RESTEASY007550: Unable to get boundary for multipart"
619618 )
620619
621620 date = email .utils .formatdate (
@@ -624,7 +623,7 @@ def __init__(self) -> None:
624623 usegmt = True ,
625624 )
626625 self .headers = {
627- "Content-Type" : "text/html;charset=utf-8 " ,
626+ "Content-Type" : "application/json " ,
628627 "Connection" : "keep-alive" ,
629628 "Server" : "nginx" ,
630629 "Date" : date ,
Original file line number Diff line number Diff line change @@ -177,13 +177,10 @@ class TestContentType:
177177 ),
178178 (
179179 "*/*" ,
180- HTTPStatus .BAD_REQUEST ,
181- "text/html;charset=utf-8 " ,
180+ HTTPStatus .INTERNAL_SERVER_ERROR ,
181+ "application/json " ,
182182 None ,
183- (
184- "java.io.IOException: RESTEASY007550: Unable to get "
185- "boundary for multipart"
186- ),
183+ "RESTEASY007550: Unable to get boundary for multipart" ,
187184 ),
188185 (
189186 "text/*" ,
@@ -255,7 +252,9 @@ def test_incorrect_no_boundary(
255252 request_body = requests_response .request .body ,
256253 tell_position = requests_response .raw .tell (),
257254 )
258- handle_server_errors (response = vws_response )
255+
256+ if resp_status_code != HTTPStatus .INTERNAL_SERVER_ERROR :
257+ handle_server_errors (response = vws_response )
259258
260259 assert requests_response .text == resp_text
261260 assert_vwq_failure (
You can’t perform that action at this time.
0 commit comments