Skip to content

Commit 862d6d1

Browse files
committed
Progress towards docstring
1 parent cca29c1 commit 862d6d1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
attrs==18.1.0 # Modern attrs is required for pytest
22
autoflake==1.2
3+
bitmath==1.3.1.2
34
check-manifest==0.37
45
codecov==2.0.15 # Upload coverage data
56
dodgy==0.1.9 # Look for uploaded secrets

tests/mock_vws/test_query.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)