mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 20:06:12 +08:00
fix some bug
This commit is contained in:
parent
dae092402d
commit
a671264c39
@ -18,7 +18,10 @@ async def test_query_with_superuser_private(app: App):
|
|||||||
async with app.test_matcher(group_manage_matcher) as ctx:
|
async with app.test_matcher(group_manage_matcher) as ctx:
|
||||||
bot = ctx.create_bot(base=Bot)
|
bot = ctx.create_bot(base=Bot)
|
||||||
event = fake_private_message_event(
|
event = fake_private_message_event(
|
||||||
message=Message("群管理"), sender=fake_superuser
|
message=Message("群管理"),
|
||||||
|
sender=fake_superuser,
|
||||||
|
to_me=True,
|
||||||
|
user_id=fake_superuser.user_id,
|
||||||
)
|
)
|
||||||
ctx.receive_event(bot, event)
|
ctx.receive_event(bot, event)
|
||||||
ctx.should_pass_rule()
|
ctx.should_pass_rule()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user