MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_parse_file_image

Method test_parse_file_image

tests/utils/test_other_utils.py:360–366  ·  view source on GitHub ↗

Test parse_file with image path.

(self)

Source from the content-addressed store, hash-verified

358 assert result.height <= 1024
359
360 def test_parse_file_image(self):
361 """Test parse_file with image path."""
362 from datastudio.utils.vision import parse_file
363
364 file_type, content = parse_file("test.jpg")
365
366 assert file_type == "image" or file_type is None
367
368 def test_parse_file_dict_with_image(self):
369 """Test parse_file with dict containing image."""

Callers

nothing calls this directly

Calls 1

parse_fileFunction · 0.90

Tested by

no test coverage detected