Skip to content

Commit 1ba5467

Browse files
committed
Passing test on real
1 parent 827f040 commit 1ba5467

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/mock_vws/test_query.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)