diff --git a/tests/platforms/test_bilibili_live.py b/tests/platforms/test_bilibili_live.py index 3e998a945..1c9efc323 100644 --- a/tests/platforms/test_bilibili_live.py +++ b/tests/platforms/test_bilibili_live.py @@ -26,7 +26,6 @@ def dummy_only_open_user_subinfo(app: App): return UserSubInfo(user=user, categories=[1], tags=[]) -@pytest.mark.asyncio async def test_http_client_equal(app: App): from nonebot_bison.types import Target from nonebot_bison.utils import ProcessContext diff --git a/tests/sub_manager/test_add.py b/tests/sub_manager/test_add.py index 982938e64..00ad80916 100644 --- a/tests/sub_manager/test_add.py +++ b/tests/sub_manager/test_add.py @@ -472,6 +472,9 @@ async def test_add_with_bilibili_live_target_parser(app: App, init_scheduler): bilibili_main_page_router = respx.get("https://www.bilibili.com/") bilibili_main_page_router.mock(return_value=Response(200)) + bilibili_live_router = respx.get("https://live.bilibili.com/") + bilibili_live_router.mock(return_value=Response(200)) + async with app.test_matcher(add_sub_matcher) as ctx: bot = ctx.create_bot() event_1 = fake_group_message_event(