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

Method setUp

tests/utils/test_plugin.py:17–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15class PluginTest(unittest.TestCase):
16
17 def setUp(self):
18 self.plugins_root = 'tests/utils/plugins/'
19 self.tmp_dir = tempfile.TemporaryDirectory().name
20 if not os.path.exists(self.tmp_dir):
21 os.makedirs(self.tmp_dir)
22 self.package = 'adaseq'
23 self.plugins_manager = PluginsManager()
24
25 def tearDown(self):
26 shutil.rmtree(self.tmp_dir)

Callers

nothing calls this directly

Calls 2

PluginsManagerClass · 0.90
existsMethod · 0.45

Tested by

no test coverage detected