mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-05 19:12:41 +08:00
test: update tests to expect text as previewable media type
Amp-Thread-ID: https://ampcode.com/threads/T-019c0be0-9fc6-71ac-853a-7c7cc846b375 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
parent
2ada262e81
commit
ff04757e40
@ -35,13 +35,13 @@ class TestIsPreviewable:
|
|||||||
"""Unit tests for is_previewable()"""
|
"""Unit tests for is_previewable()"""
|
||||||
|
|
||||||
def test_previewable_media_types(self):
|
def test_previewable_media_types(self):
|
||||||
"""Images, video, audio media types should be previewable."""
|
"""Images, video, audio, text media types should be previewable."""
|
||||||
for media_type in ['images', 'video', 'audio']:
|
for media_type in ['images', 'video', 'audio', 'text']:
|
||||||
assert is_previewable(media_type, {}) is True
|
assert is_previewable(media_type, {}) is True
|
||||||
|
|
||||||
def test_non_previewable_media_types(self):
|
def test_non_previewable_media_types(self):
|
||||||
"""Other media types should not be previewable."""
|
"""Other media types should not be previewable."""
|
||||||
for media_type in ['latents', 'text', 'metadata', 'files']:
|
for media_type in ['latents', 'metadata', 'files']:
|
||||||
assert is_previewable(media_type, {}) is False
|
assert is_previewable(media_type, {}) is False
|
||||||
|
|
||||||
def test_3d_extensions_previewable(self):
|
def test_3d_extensions_previewable(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user