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

Method setUp

tests/pipelines/test_base.py:25–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23class CustomPipelineTest(unittest.TestCase):
24
25 def setUp(self) -> None:
26 self.model_dir = '/tmp/custom-image'
27 self.prepare_dir(self.model_dir, 'custom-image')
28
29 def prepare_dir(self, dirname, pipeline_name):
30 if not os.path.exists(dirname):

Callers

nothing calls this directly

Calls 1

prepare_dirMethod · 0.95

Tested by

no test coverage detected