mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Preserve middleware context across scene goto transitions (#1687) * Add After.goto coverage for scene middleware context (#1687)
This commit is contained in:
parent
e37eddbe8c
commit
73710acb4c
4 changed files with 113 additions and 0 deletions
|
|
@ -253,6 +253,7 @@ class TestSceneHandlerWrapper:
|
|||
|
||||
state_mock = AsyncMock(spec=FSMContext)
|
||||
scenes_mock = AsyncMock(spec=ScenesManager)
|
||||
scenes_mock.data = {}
|
||||
event_update_mock = Update(
|
||||
update_id=42,
|
||||
message=Message(
|
||||
|
|
@ -282,6 +283,7 @@ class TestSceneHandlerWrapper:
|
|||
|
||||
state_mock = AsyncMock(spec=FSMContext)
|
||||
scenes_mock = AsyncMock(spec=ScenesManager)
|
||||
scenes_mock.data = {}
|
||||
event_update_mock = Update(
|
||||
update_id=42,
|
||||
message=Message(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue