File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1121,14 +1121,13 @@ def test_png(
11211121
11221122 image_content = png_not_too_large .getvalue ()
11231123 body = {'image' : ('image.jpeg' , image_content , 'image/jpeg' )}
1124+ image_content_size = len (image_content )
11241125 # We check that the image we created is just slightly smaller than the
11251126 # maximum file size.
11261127 #
11271128 # This is just because of the implementation details of ``image_file``.
1128- # assert image_content_size > documented_max_bytes
1129- # assert (image_content_size * 0.9) < documented_max_bytes
1130-
1131- image_content_size = len (image_content )
1129+ assert image_content_size > documented_max_bytes
1130+ assert (image_content_size * 0.9 ) < documented_max_bytes
11321131
11331132 with pytest .raises (requests .exceptions .ConnectionError ):
11341133 query (
You can’t perform that action at this time.
0 commit comments