MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / test_load_plugin

Function test_load_plugin

tests/test_plugin/test_load.py:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40@_recover
41def test_load_plugin():
42 # check regular
43 assert nonebot.load_plugin("dynamic.simple")
44
45 # check path
46 assert nonebot.load_plugin(Path("dynamic/path.py"))
47
48 # check not found
49 assert nonebot.load_plugin("some_plugin_not_exist") is None
50
51
52def test_load_plugins(load_plugin: set[Plugin], load_builtin_plugin: set[Plugin]):

Callers

nothing calls this directly

Calls 1

load_pluginMethod · 0.80

Tested by

no test coverage detected