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:
612
612
raised.
613
613
"""
614
614
super ().__init__ ()
615
- self .status_code = HTTPStatus .BAD_REQUEST
615
+ self .status_code = HTTPStatus .INTERNAL_SERVER_ERROR
616
616
self .response_text = (
617
- "java.io.IOException: RESTEASY007550: "
618
- "Unable to get boundary for multipart"
617
+ "RESTEASY007550: Unable to get boundary for multipart"
619
618
)
620
619
621
620
date = email .utils .formatdate (
@@ -624,7 +623,7 @@ def __init__(self) -> None:
624
623
usegmt = True ,
625
624
)
626
625
self .headers = {
627
- "Content-Type" : "text/html;charset=utf-8 " ,
626
+ "Content-Type" : "application/json " ,
628
627
"Connection" : "keep-alive" ,
629
628
"Server" : "nginx" ,
630
629
"Date" : date ,
Original file line number Diff line number Diff line change @@ -177,13 +177,10 @@ class TestContentType:
177
177
),
178
178
(
179
179
"*/*" ,
180
- HTTPStatus .BAD_REQUEST ,
181
- "text/html;charset=utf-8 " ,
180
+ HTTPStatus .INTERNAL_SERVER_ERROR ,
181
+ "application/json " ,
182
182
None ,
183
- (
184
- "java.io.IOException: RESTEASY007550: Unable to get "
185
- "boundary for multipart"
186
- ),
183
+ "RESTEASY007550: Unable to get boundary for multipart" ,
187
184
),
188
185
(
189
186
"text/*" ,
@@ -255,7 +252,9 @@ def test_incorrect_no_boundary(
255
252
request_body = requests_response .request .body ,
256
253
tell_position = requests_response .raw .tell (),
257
254
)
258
- handle_server_errors (response = vws_response )
255
+
256
+ if resp_status_code != HTTPStatus .INTERNAL_SERVER_ERROR :
257
+ handle_server_errors (response = vws_response )
259
258
260
259
assert requests_response .text == resp_text
261
260
assert_vwq_failure (
You can’t perform that action at this time.
0 commit comments