Skip to content

Commit b86f040

Browse files
Bump vws-python to 2026.2.21 (#2982)
* Bump vws-python to 2026.02.21 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add content parameter to Response calls for vws-python 2026.2.21 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c4c432d commit b86f040

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ optional-dependencies.dev = [
103103
"types-requests==2.32.4.20260107",
104104
"urllib3==2.6.3",
105105
"vulture==2.14",
106-
"vws-python==2026.2.15",
106+
"vws-python==2026.2.21",
107107
"vws-test-fixtures==2023.3.5",
108108
"vws-web-tools==2026.2.20",
109109
"yamlfix==1.19.1",

tests/mock_vws/test_query.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def _query(
143143
headers=dict(requests_response.headers),
144144
request_body=requests_response.request.body,
145145
tell_position=requests_response.raw.tell(),
146+
content=requests_response.content,
146147
)
147148
handle_server_errors(response=vws_response)
148149
return vws_response
@@ -250,6 +251,7 @@ def test_incorrect_no_boundary(
250251
headers=dict(requests_response.headers),
251252
request_body=requests_response.request.body,
252253
tell_position=requests_response.raw.tell(),
254+
content=requests_response.content,
253255
)
254256

255257
if resp_status_code != HTTPStatus.INTERNAL_SERVER_ERROR:
@@ -326,6 +328,7 @@ def test_incorrect_with_boundary(
326328
headers=dict(requests_response.headers),
327329
request_body=requests_response.request.body,
328330
tell_position=requests_response.raw.tell(),
331+
content=requests_response.content,
329332
)
330333
handle_server_errors(response=vws_response)
331334
assert not requests_response.text
@@ -397,6 +400,7 @@ def test_no_boundary(
397400
headers=dict(requests_response.headers),
398401
request_body=requests_response.request.body,
399402
tell_position=requests_response.raw.tell(),
403+
content=requests_response.content,
400404
)
401405
expected_text = "RESTEASY007550: Unable to get boundary for multipart"
402406
assert requests_response.text == expected_text
@@ -456,6 +460,7 @@ def test_bogus_boundary(
456460
headers=dict(requests_response.headers),
457461
request_body=requests_response.request.body,
458462
tell_position=requests_response.raw.tell(),
463+
content=requests_response.content,
459464
)
460465
handle_server_errors(response=vws_response)
461466

@@ -521,6 +526,7 @@ def test_extra_section(
521526
headers=dict(requests_response.headers),
522527
request_body=requests_response.request.body,
523528
tell_position=requests_response.raw.tell(),
529+
content=requests_response.content,
524530
)
525531
handle_server_errors(response=vws_response)
526532
assert_query_success(response=vws_response)
@@ -1230,6 +1236,7 @@ def test_valid(
12301236
headers=dict(requests_response.headers),
12311237
request_body=requests_response.request.body,
12321238
tell_position=requests_response.raw.tell(),
1239+
content=requests_response.content,
12331240
)
12341241
handle_server_errors(response=vws_response)
12351242
assert_query_success(response=vws_response)
@@ -1288,6 +1295,7 @@ def test_invalid(
12881295
headers=dict(requests_response.headers),
12891296
request_body=requests_response.request.body,
12901297
tell_position=requests_response.raw.tell(),
1298+
content=requests_response.content,
12911299
)
12921300
handle_server_errors(response=vws_response)
12931301

@@ -2008,6 +2016,7 @@ def test_date_formats(
20082016
headers=dict(requests_response.headers),
20092017
request_body=requests_response.request.body,
20102018
tell_position=requests_response.raw.tell(),
2019+
content=requests_response.content,
20112020
)
20122021
handle_server_errors(response=vws_response)
20132022
assert_query_success(response=vws_response)

tests/mock_vws/utils/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def send(self) -> Response:
7171
headers=dict(requests_response.headers),
7272
request_body=requests_response.request.body,
7373
tell_position=requests_response.raw.tell(),
74+
content=requests_response.content,
7475
)
7576

7677
@property

0 commit comments

Comments
 (0)