mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 02:50:48 +00:00
🐛 fix plugin load fail
This commit is contained in:
@ -94,3 +94,9 @@ async def test_load_plugin(load_plugin: Set["Plugin"]):
|
||||
assert False
|
||||
except RuntimeError:
|
||||
assert True
|
||||
|
||||
try:
|
||||
nonebot.load_plugin("some_plugin_no_exist")
|
||||
assert False
|
||||
except Exception:
|
||||
assert nonebot.get_plugin("some_plugin_no_exist") is None
|
||||
|
Reference in New Issue
Block a user