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

Method test_custom_plugins

tests/utils/test_plugin.py:41–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 assert MODELS.get('dummy-model', 'dummy-group') is not None
40
41 def test_custom_plugins(self):
42 with pushd(self.plugins_root):
43 available_plugins = set(discover_plugins())
44 assert available_plugins == {'dummy'}
45
46 import_plugins(['dummy'])
47 assert MODELS.get('dummy-model', 'dummy-group') is not None
48
49 def test_all_plugins(self):
50 with pushd(self.plugins_root):

Callers

nothing calls this directly

Calls 4

pushdFunction · 0.90
discover_pluginsFunction · 0.90
import_pluginsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected