Skip to content

Commit 4b0e143

Browse files
committed
More specific test [skip ci]
1 parent e349715 commit 4b0e143

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/mock_vws/test_add_target.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def test_image_too_large(
477477
An `ImageTooLarge` result is returned if the image is above a certain
478478
threshold.
479479
"""
480-
max_bytes = 2 * 1024 * 1024
480+
max_bytes = 2.3 * 1024 * 1024
481481
width = height = 886
482482
png_not_too_large = make_image_file(
483483
file_format='PNG',
@@ -493,8 +493,8 @@ def test_image_too_large(
493493
# maximum file size.
494494
#
495495
# This is just because of the implementation details of ``image_file``.
496-
# assert image_content_size < max_bytes
497-
# assert (image_content_size * 1.05) > max_bytes
496+
assert image_content_size < max_bytes
497+
assert (image_content_size * 1.05) > max_bytes
498498

499499
data = {
500500
'name': 'example_name',
@@ -525,8 +525,8 @@ def test_image_too_large(
525525
# maximum file size.
526526
#
527527
# This is just because of the implementation details of ``image_file``.
528-
# assert image_content_size < max_bytes
529-
# assert (image_content_size * 1.05) > max_bytes
528+
assert image_content_size < max_bytes
529+
assert (image_content_size * 1.05) > max_bytes
530530

531531
data = {
532532
'name': 'example_name_2',

0 commit comments

Comments
 (0)