mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
13 lines
331 B
Python
13 lines
331 B
Python
from nonebug import App
|
|
|
|
from nonebot.matcher import DEFAULT_PROVIDER_CLASS, matchers
|
|
|
|
|
|
def test_manager(app: App):
|
|
try:
|
|
default_provider = matchers.provider
|
|
matchers.set_provider(DEFAULT_PROVIDER_CLASS)
|
|
assert default_provider == matchers.provider
|
|
finally:
|
|
matchers.provider = app.provider
|