mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 20:16:47 +00:00
⚗️ change import hook
This commit is contained in:
@ -31,8 +31,6 @@ nonebot.load_plugin("nonebot_plugin_test")
|
||||
# load local plugins
|
||||
nonebot.load_plugins("test_plugins")
|
||||
|
||||
print(nonebot.require("test_export"))
|
||||
|
||||
# modify some config / config depends on loaded configs
|
||||
config = driver.config
|
||||
config.custom_config3 = config.custom_config1
|
||||
|
5
tests/test_plugins/test_get_export.py
Normal file
5
tests/test_plugins/test_get_export.py
Normal file
@ -0,0 +1,5 @@
|
||||
import nonebot
|
||||
|
||||
from .test_export import export
|
||||
|
||||
print(export, nonebot.require("test_export"))
|
Reference in New Issue
Block a user