mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed test
This commit is contained in:
parent
82f1c8a418
commit
85b024cf78
1 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue