nonebot2/tests/plugins/require.py

9 lines
203 B
Python
Raw Permalink Normal View History

2021-12-16 17:28:57 +08:00
from nonebot import require
test_require = require("export").test
2022-05-26 16:35:47 +08:00
from plugins.export import test
assert test is test_require, "Export Require Error"
assert test() == "export", "Export Require Error"