Skip to content

Commit 7a19a8f

Browse files
committed
tests: remove erroneous unit test
1 parent 062e842 commit 7a19a8f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/unit/utils/test_image_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ def test_load_image_invalid(
7575
img_str = base64.b64encode(img_bytes).decode()
7676
load_image(img_str)
7777

78-
def test_load_image_unsupported_type(self) -> None:
79-
with pytest.raises(AttributeError):
80-
load_image(123) # type: ignore
81-
8278
def test_load_image_nonexistent_file(self) -> None:
8379
with pytest.raises(ValueError, match="Could not open image from file path"):
8480
load_image("nonexistent_file.png")
@@ -238,10 +234,6 @@ def test_image_to_base64_format(
238234
# Verify the images are different (JPEG is lossy)
239235
assert png_base64 != jpeg_base64
240236

241-
def test_image_to_base64_unsupported_type(self) -> None:
242-
with pytest.raises(AttributeError):
243-
image_to_base64(123) # type: ignore
244-
245237

246238
class TestImageScaling:
247239
def test_scale_image_with_padding(

0 commit comments

Comments
 (0)