mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 10:17:56 +08:00
fix conflict
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
|
||||
import pytest
|
||||
from nonebug import App
|
||||
|
||||
from .utils import fake_admin_user, fake_private_message_event, fake_group_message_event, fake_superuser
|
||||
from .utils import (
|
||||
fake_admin_user,
|
||||
fake_group_message_event,
|
||||
fake_private_message_event,
|
||||
fake_superuser,
|
||||
)
|
||||
|
||||
from .conftest import app
|
||||
|
||||
import pytest
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_query_with_superuser_private(app: App):
|
||||
@@ -51,6 +53,7 @@ async def test_query_with_superuser_private(app: App):
|
||||
ctx.should_pass_rule()
|
||||
ctx.should_pass_permission()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_query_with_superuser_group_tome(app: App):
|
||||
from nonebot.adapters.onebot.v11.bot import Bot
|
||||
@@ -67,4 +70,4 @@ async def test_query_with_superuser_group_tome(app: App):
|
||||
ctx.should_pass_permission()
|
||||
ctx.should_call_send(
|
||||
event, Message("该功能只支持私聊使用,请私聊Bot"), True
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user