mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 20:06:12 +08:00
auto fix by pre-commit hooks
This commit is contained in:
parent
3057f41f25
commit
29a82b80c8
@ -2,10 +2,12 @@ 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
|
||||||
async def test_abort_add_on_platform(app: App):
|
async def test_abort_add_on_platform(app: App):
|
||||||
@ -65,7 +67,9 @@ 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
|
||||||
async def test_abort_add_on_id(app: App):
|
async def test_abort_add_on_id(app: App):
|
||||||
@ -137,7 +141,8 @@ 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
|
||||||
async def test_abort_add_on_cats(app: App):
|
async def test_abort_add_on_cats(app: App):
|
||||||
@ -223,7 +228,7 @@ async def test_abort_add_on_cats(app: App):
|
|||||||
ctx.should_finished()
|
ctx.should_finished()
|
||||||
|
|
||||||
|
|
||||||
#输入标签阶段中止
|
# 输入标签阶段中止
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@respx.mock
|
@respx.mock
|
||||||
async def test_abort_add_on_tag(app: App):
|
async def test_abort_add_on_tag(app: App):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user