fix conflict

This commit is contained in:
Azide
2022-03-14 23:58:53 +08:00
2 changed files with 12 additions and 7 deletions
+9 -6
View File
@@ -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
)
)