Skip to content

Commit

Permalink
✅ mock route live.bilibili.com
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric committed Feb 19, 2024
1 parent 24aa461 commit a3993f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/platforms/test_bilibili_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/sub_manager/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a3993f3

Please sign in to comment.