mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
iter states in states group (#666)
* iter states in states group * fix type hint * remove empty line * add changes for doc
This commit is contained in:
parent
714ac8896c
commit
90b3a99039
3 changed files with 13 additions and 1 deletions
|
|
@ -150,6 +150,13 @@ class TestStatesGroup:
|
|||
|
||||
assert MyGroup.MyNestedGroup.get_root() is MyGroup
|
||||
|
||||
def test_iterable(self):
|
||||
class Group(StatesGroup):
|
||||
x = State()
|
||||
y = State()
|
||||
|
||||
assert set(Group) == {Group.x, Group.y}
|
||||
|
||||
def test_empty_filter(self):
|
||||
class MyGroup(StatesGroup):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue