()
| 39 | |
| 40 | @_recover |
| 41 | def 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 | |
| 52 | def test_load_plugins(load_plugin: set[Plugin], load_builtin_plugin: set[Plugin]): |
nothing calls this directly
no test coverage detected