mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-03 18:06:13 +08:00
同步fix分支的test
This commit is contained in:
parent
53273d2d6f
commit
067317d6df
@ -1,12 +1,7 @@
|
||||
import pytest
|
||||
from nonebug import App
|
||||
|
||||
from .utils import (
|
||||
fake_admin_user,
|
||||
fake_group_message_event,
|
||||
fake_private_message_event,
|
||||
fake_superuser,
|
||||
)
|
||||
from .utils import fake_group_message_event, fake_private_message_event, fake_superuser
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@ -86,4 +81,4 @@ async def test_query_with_superuser_group_tome(app: App):
|
||||
ctx.receive_event(bot, event)
|
||||
ctx.should_pass_rule()
|
||||
ctx.should_pass_permission()
|
||||
ctx.should_call_send(event, "", True)
|
||||
ctx.should_call_send(event, Message("该功能只支持私聊使用,请私聊Bot"), True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user