mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add support for State type to scenes methods like goto, enter, get
Calm down MyPy
This commit is contained in:
parent
482629ac18
commit
f656cccb65
2 changed files with 17 additions and 14 deletions
|
|
@ -1490,7 +1490,9 @@ class TestSceneRegistry:
|
|||
registry = SceneRegistry(router, register_on_add)
|
||||
registry.add(MyScene)
|
||||
|
||||
with pytest.raises(SceneException, match="Scene must be a subclass of Scene or a string"):
|
||||
with pytest.raises(
|
||||
SceneException, match="Scene must be a subclass of Scene, State or a string"
|
||||
):
|
||||
registry.get(MyScene)
|
||||
|
||||
def test_scene_registry_get_scene_not_registered(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue