mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-16 19:11:00 +00:00
👷 fix python ci cache path error (#1012)
* 👷 fix python ci cache path error * 🐛 fix path error * ✏️ fix typo
This commit is contained in:
@ -22,7 +22,10 @@ async def test_load_plugin(app: App, load_plugin: Set["Plugin"]):
|
||||
assert "plugins.export" in sys.modules
|
||||
|
||||
# check sub plugin
|
||||
plugin = nonebot.get_plugin("nested_subplugin")
|
||||
assert plugin
|
||||
assert "plugins.nested.plugins.nested_subplugin" in sys.modules
|
||||
assert plugin.parent_plugin == nonebot.get_plugin("nested")
|
||||
|
||||
# check load again
|
||||
with pytest.raises(RuntimeError):
|
||||
|
Reference in New Issue
Block a user