Skip to content

Commit 970c617

Browse files
committed
Found maximum metadata size
1 parent 03d7c6c commit 970c617

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/mock_vws/test_add_target.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,10 @@ def test_too_large_foo(
779779
image_data = png_rgb.read()
780780
image_data_encoded = base64.b64encode(image_data).decode('ascii')
781781

782-
# 500000 not too large
783-
# 5000000 is too large
784-
metadata = b'a' * 5000000
782+
# 1000000 not too large
783+
# (1024 * 1024 - 1) is not too large
784+
# (1024 * 1024) is too large
785+
metadata = b'a' * (1024 * 1024)
785786
metadata_encoded = base64.b64encode(metadata).decode('ascii')
786787

787788
data = {

0 commit comments

Comments
 (0)