Test parse_file with image path.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected