mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Fix unexpected behavior of sequences in StateFilter (#791)
* Fix sequence check behavior in StateFilter * Add sequence cases to StateFilter tests * Add the changelog
This commit is contained in:
parent
7c14a6b16b
commit
6e39f9fada
3 changed files with 9 additions and 4 deletions
|
|
@ -41,6 +41,9 @@ class TestStateFilter:
|
|||
[[None], None, True],
|
||||
[None, "state", False],
|
||||
[[], "state", False],
|
||||
[[State("state"), "state"], "state", True],
|
||||
[[MyGroup(), State("state")], "@:state", True],
|
||||
[[MyGroup, State("state")], "state", False],
|
||||
],
|
||||
)
|
||||
@pytestmark
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue