fix some bug

This commit is contained in:
felinae98 2022-03-14 23:26:50 +08:00
parent dae092402d
commit a671264c39
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -18,7 +18,10 @@ async def test_query_with_superuser_private(app: App):
async with app.test_matcher(group_manage_matcher) as ctx:
bot = ctx.create_bot(base=Bot)
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.should_pass_rule()