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

Method test_plugins_uninstall

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

Source from the content-addressed store, hash-verified

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
29 uninstall_args = [self.package, '-y']
30 self.plugins_manager.uninstall_plugins(uninstall_args)
31
32 cmd = f'python -m modelscope.cli.cli plugin install {self.package}'
33 stat, output = subprocess.getstatusoutput(cmd)
34 self.assertEqual(stat, 0)
35
36 cmd = f'python -m modelscope.cli.cli plugin uninstall {self.package}'
37 stat, output = subprocess.getstatusoutput(cmd)
38 self.assertEqual(stat, 0)
39
40 # move this from tear down to avoid unexpected uninstall
41 uninstall_args = [self.package, '-y']
42 self.plugins_manager.uninstall_plugins(uninstall_args)
43
44 def test_plugins_list(self):
45 cmd = 'python -m modelscope.cli.cli plugin list'

Callers

nothing calls this directly

Calls 1

uninstall_pluginsMethod · 0.80

Tested by

no test coverage detected