examples for the modelscope list method > modelscope list > modelscope list --all > modelscope list -a #
(self)
| 110 | self.assertEqual(status_code, 0) |
| 111 | |
| 112 | def test_list_plugins(self): |
| 113 | """ |
| 114 | examples for the modelscope list method |
| 115 | > modelscope list |
| 116 | > modelscope list --all |
| 117 | > modelscope list -a |
| 118 | # """ |
| 119 | modelscope_plugin = os.path.join(self.tmp_dir, 'modelscope_plugin') |
| 120 | self.plugins_manager.file_path = modelscope_plugin |
| 121 | result = self.plugins_manager.list_plugins() |
| 122 | self.assertEqual(len(result.items()), 0) |
| 123 | |
| 124 | from modelscope.utils.plugins import OFFICIAL_PLUGINS |
| 125 | |
| 126 | result = self.plugins_manager.list_plugins(show_all=True) |
| 127 | self.assertEqual(len(result.items()), len(OFFICIAL_PLUGINS)) |
| 128 | |
| 129 | |
| 130 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected