MCPcopy Create free account
hub / github.com/modelscope/modelscope / test_load

Method test_load

tests/preprocessors/test_image.py:14–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13 @unittest.skipUnless(test_level() >= 1, 'skip test in current test level')
14 def test_load(self):
15 img = load_image('data/test/images/image_matting.png')
16 self.assertTrue(isinstance(img, Image.Image))
17 self.assertEqual(img.size, (948, 533))
18
19
20if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

load_imageFunction · 0.90

Tested by

no test coverage detected