Skip to content

Commit 9637d9d

Browse files
committed
Update documentation [skip ci]
1 parent 4368ee2 commit 9637d9d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/mock_vws/_mock_web_query_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ def validate_image_file_size(
8888
8989
Returns:
9090
The result of calling the endpoint.
91-
An `UNPROCESSABLE_ENTITY` response if the image is given and is not
92-
either a PNG or a JPEG.
91+
92+
Raises:
93+
requests.exceptions.ConnectionError: The image file size is too large.
9394
"""
9495
request, _ = args
9596
body_file = io.BytesIO(request.body)

tests/mock_vws/test_query.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,6 @@ class TestMaximumImageSize:
10651065
"""
10661066
Tests for maximum image sizes.
10671067
"""
1068-
# # Look at history to find what max size was, I think it was
1069-
# 835^2 or 836^2
1070-
# # This gives 422 on real, 200 on mock
1071-
# width = 1
1072-
# height = int(max_size / 2)
10731068

10741069
def test_png(
10751070
self,

0 commit comments

Comments
 (0)