From 85b024cf78aed5b789c502c363ac2370d7010d72 Mon Sep 17 00:00:00 2001 From: JRoot Junior Date: Thu, 16 Nov 2023 22:59:53 +0200 Subject: [PATCH] Fixed test --- tests/test_fsm/test_scene.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_fsm/test_scene.py b/tests/test_fsm/test_scene.py index b4ce48dd..d2a35772 100644 --- a/tests/test_fsm/test_scene.py +++ b/tests/test_fsm/test_scene.py @@ -134,7 +134,7 @@ class TestObserverDecorator: assert len(wrapped2.__aiogram_handler__) == 2 def test_wrap_action(self): - decorator = ObserverDecorator("test", F.test) + decorator = ObserverDecorator("test", F.test, action=SceneAction.enter) def handler(): pass @@ -146,5 +146,5 @@ class TestObserverDecorator: assert isinstance(wrapped.__aiogram_action__, dict) assert len(wrapped.__aiogram_action__) == 1 - assert "test" in wrapped.__aiogram_action__ - assert wrapped.__aiogram_action__["test"] + assert SceneAction.enter in wrapped.__aiogram_action__ + assert "test" in wrapped.__aiogram_action__[SceneAction.enter]