Fixed test

This commit is contained in:
JRoot Junior 2023-11-16 22:59:53 +02:00
parent 82f1c8a418
commit 85b024cf78
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2

View file

@ -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]