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

Method test_file_plugins

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

Source from the content-addressed store, hash-verified

31 assert available_plugins == set()
32
33 def test_file_plugins(self):
34 with pushd(self.plugins_root):
35 available_plugins = set(discover_plugins())
36 assert available_plugins == {'dummy'}
37
38 import_file_plugins()
39 assert MODELS.get('dummy-model', 'dummy-group') is not None
40
41 def test_custom_plugins(self):
42 with pushd(self.plugins_root):

Callers

nothing calls this directly

Calls 4

pushdFunction · 0.90
discover_pluginsFunction · 0.90
import_file_pluginsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected