MCPcopy Index your code
hub / github.com/modelscope/modelscope / test_plugins_install

Method test_plugins_install

tests/cli/test_plugins_cmd.py:18–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 super().tearDown()
17
18 def test_plugins_install(self):
19 cmd = f'python -m modelscope.cli.cli plugin install {self.package}'
20 stat, output = subprocess.getstatusoutput(cmd)
21 self.assertEqual(stat, 0)
22
23 # move this from tear down to avoid unexpected uninstall
24 uninstall_args = [self.package, '-y']
25 self.plugins_manager.uninstall_plugins(uninstall_args)
26
27 def test_plugins_uninstall(self):
28 # move this from tear down to avoid unexpected uninstall

Callers

nothing calls this directly

Calls 1

uninstall_pluginsMethod · 0.80

Tested by

no test coverage detected