mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-19 01:21:50 +00:00
remove outdated test
This commit is contained in:
parent
f3c863447f
commit
5c9ce7fd2b
@ -117,13 +117,6 @@ class TestImageBlockFactory:
|
||||
):
|
||||
create_image_block()
|
||||
|
||||
def test_base64_without_mime_type_raises_error(self) -> None:
|
||||
"""Test that base64 without mime_type raises ValueError."""
|
||||
with pytest.raises(
|
||||
ValueError, match="mime_type is required when using base64 data"
|
||||
):
|
||||
create_image_block(base64="iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJ")
|
||||
|
||||
def test_with_index(self) -> None:
|
||||
"""Test image block creation with index."""
|
||||
block = create_image_block(url="https://example.com/image.jpg", index=1)
|
||||
@ -166,13 +159,6 @@ class TestVideoBlockFactory:
|
||||
):
|
||||
create_video_block()
|
||||
|
||||
def test_base64_without_mime_type_raises_error(self) -> None:
|
||||
"""Test that base64 without mime_type raises ValueError."""
|
||||
with pytest.raises(
|
||||
ValueError, match="mime_type is required when using base64 data"
|
||||
):
|
||||
create_video_block(base64="UklGRnoGAABXQVZFZm10IBAAAAABAAEA")
|
||||
|
||||
|
||||
class TestAudioBlockFactory:
|
||||
"""Test create_audio_block factory function."""
|
||||
|
Loading…
Reference in New Issue
Block a user