File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments