Skip to content

Commit

Permalink
remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Nov 10, 2024
1 parent f9f4bf6 commit 64b6570
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,3 @@ def test_image_content_block_structure():
assert content_block["type"] == "image_url"
assert isinstance(content_block["image_url"], dict)
assert "url" in content_block["image_url"]


@pytest.mark.parametrize(
"invalid_input",
[
"", # empty string
None, # None value
123, # non-string number
True, # boolean
],
)
def test_image_with_invalid_input(invalid_input):
"""Test image filter with various invalid inputs"""
with pytest.raises((IsADirectoryError, ValueError, AttributeError, TypeError)):
image(invalid_input)

0 comments on commit 64b6570

Please sign in to comment.