🐛 fix quart context error (#2192)

This commit is contained in:
Ju4tCode
2023-07-17 15:01:21 +08:00
committed by GitHub
parent 29364679c4
commit e167865686
3 changed files with 83 additions and 9 deletions

View File

@ -234,7 +234,7 @@ async def test_run_preprocessor(app: App, monkeypatch: pytest.MonkeyPatch):
bot = ctx.create_bot()
event = make_fake_event()()
ctx.receive_event(bot, event)
ctx.should_call_send(event, "test", True, bot)
ctx.should_call_send(event, "test", True, bot=bot)
assert runned, "run_preprocessor should runned"
@ -346,7 +346,7 @@ async def test_run_postprocessor(app: App, monkeypatch: pytest.MonkeyPatch):
bot = ctx.create_bot()
event = make_fake_event()()
ctx.receive_event(bot, event)
ctx.should_call_send(event, "test", True, bot)
ctx.should_call_send(event, "test", True, bot=bot)
assert runned, "run_postprocessor should runned"