(self)
| 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' |
nothing calls this directly
no test coverage detected