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