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

Method test_list_plugins

tests/utils/test_plugin.py:112–127  ·  view source on GitHub ↗

examples for the modelscope list method > modelscope list > modelscope list --all > modelscope list -a #

(self)

Source from the content-addressed store, hash-verified

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
130if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

list_pluginsMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected