Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ optional-dependencies.dev = [
"types-requests==2.32.4.20260107",
"urllib3==2.6.3",
"vulture==2.14",
"vws-python==2026.2.15",
"vws-python==2026.2.21",
"vws-test-fixtures==2023.3.5",
"vws-web-tools==2026.2.20",
"yamlfix==1.19.1",
Expand Down
9 changes: 9 additions & 0 deletions tests/mock_vws/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def _query(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)
return vws_response
Expand Down Expand Up @@ -250,6 +251,7 @@ def test_incorrect_no_boundary(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)

if resp_status_code != HTTPStatus.INTERNAL_SERVER_ERROR:
Expand Down Expand Up @@ -326,6 +328,7 @@ def test_incorrect_with_boundary(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)
assert not requests_response.text
Expand Down Expand Up @@ -397,6 +400,7 @@ def test_no_boundary(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
expected_text = "RESTEASY007550: Unable to get boundary for multipart"
assert requests_response.text == expected_text
Expand Down Expand Up @@ -456,6 +460,7 @@ def test_bogus_boundary(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)

Expand Down Expand Up @@ -521,6 +526,7 @@ def test_extra_section(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)
assert_query_success(response=vws_response)
Expand Down Expand Up @@ -1230,6 +1236,7 @@ def test_valid(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)
assert_query_success(response=vws_response)
Expand Down Expand Up @@ -1288,6 +1295,7 @@ def test_invalid(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)

Expand Down Expand Up @@ -2008,6 +2016,7 @@ def test_date_formats(
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)
handle_server_errors(response=vws_response)
assert_query_success(response=vws_response)
Expand Down
1 change: 1 addition & 0 deletions tests/mock_vws/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def send(self) -> Response:
headers=dict(requests_response.headers),
request_body=requests_response.request.body,
tell_position=requests_response.raw.tell(),
content=requests_response.content,
)

@property
Expand Down