mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-12 22:45:47 +08:00
13 lines
314 B
Python
13 lines
314 B
Python
|
import pytest
|
||
|
from nonebug import App
|
||
|
|
||
|
|
||
|
@pytest.mark.asyncio
|
||
|
async def test_load_plugin_name(app: App):
|
||
|
from nonebot.plugin import PluginManager
|
||
|
|
||
|
m = PluginManager(plugins=["plugins.export"])
|
||
|
module1 = m.load_plugin("export")
|
||
|
module2 = m.load_plugin("plugins.export")
|
||
|
assert module1 is module2
|