mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 04:13:00 +08:00
Merge branch 'main' of https://github.com/AzideCupric/nonebot-bison
This commit is contained in:
commit
ab74d6227c
@ -2,9 +2,11 @@ import pytest
|
|||||||
import respx
|
import respx
|
||||||
from httpx import Response
|
from httpx import Response
|
||||||
from nonebug.app import App
|
from nonebug.app import App
|
||||||
|
|
||||||
from .platforms.utils import get_json
|
from .platforms.utils import get_json
|
||||||
from .utils import fake_admin_user, fake_group_message_event
|
from .utils import fake_admin_user, fake_group_message_event
|
||||||
|
|
||||||
|
|
||||||
# 选择platform阶段中止
|
# 选择platform阶段中止
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@respx.mock
|
@respx.mock
|
||||||
@ -65,6 +67,8 @@ async def test_abort_add_on_platform(app: App):
|
|||||||
True,
|
True,
|
||||||
)
|
)
|
||||||
ctx.should_finished()
|
ctx.should_finished()
|
||||||
|
|
||||||
|
|
||||||
# 输入id阶段中止
|
# 输入id阶段中止
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@respx.mock
|
@respx.mock
|
||||||
@ -137,6 +141,7 @@ async def test_abort_add_on_id(app: App):
|
|||||||
)
|
)
|
||||||
ctx.should_finished()
|
ctx.should_finished()
|
||||||
|
|
||||||
|
|
||||||
# 输入订阅类别阶段中止
|
# 输入订阅类别阶段中止
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@respx.mock
|
@respx.mock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user