Skip to content

Commit b7cd36e

Browse files
committed
Test for image too large
1 parent 851357c commit b7cd36e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_exceptions/test_image_too_large.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
import io
66
import random
7-
from pathlib import Path
87

98
import pytest
10-
from requests import codes
119
from PIL import Image
10+
from requests import codes
1211

1312
from vws import VWS
1413
from vws.exceptions import ImageTooLarge
@@ -47,7 +46,11 @@ def make_image_file(
4746
return image_buffer
4847

4948

50-
def test_foo(client: VWS):
49+
def test_image_too_large(client: VWS) -> None:
50+
"""
51+
When giving an image which is too large, an ``ImageTooLarge`` exception is
52+
raised.
53+
"""
5154
width = height = 890
5255

5356
png_too_large = make_image_file(

0 commit comments

Comments
 (0)