File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11attrs == 18.1.0 # Modern attrs is required for pytest
22autoflake == 1.2
3+ bitmath == 1.3.1.2
34check-manifest == 0.37
45codecov == 2.0.15 # Upload coverage data
56dodgy == 0.1.9 # Look for uploaded secrets
Original file line number Diff line number Diff line change @@ -1071,6 +1071,8 @@ class TestMaximumImageSize:
10711071 # width = 1
10721072 # height = int(max_size / 2)
10731073
1074+ # Also test max megapixels
1075+
10741076 def test_png (
10751077 self ,
10761078 vuforia_database_keys : VuforiaDatabaseKeys ,
@@ -1090,6 +1092,9 @@ def test_png(
10901092 image_content = png_not_too_large .getvalue ()
10911093 body = {'image' : ('image.jpeg' , image_content , 'image/jpeg' )}
10921094
1095+ image_content_size = len (image_content )
1096+ assert image_content
1097+
10931098 response = query (
10941099 vuforia_database_keys = vuforia_database_keys ,
10951100 body = body ,
@@ -1109,6 +1114,8 @@ def test_png(
11091114 image_content = png_not_too_large .getvalue ()
11101115 body = {'image' : ('image.jpeg' , image_content , 'image/jpeg' )}
11111116
1117+ image_content_size = len (image_content )
1118+
11121119 with pytest .raises (requests .exceptions .ConnectionError ):
11131120 query (
11141121 vuforia_database_keys = vuforia_database_keys ,
You can’t perform that action at this time.
0 commit comments