diff --git a/tests/test_dispatcher/test_filters/test_builtin.py b/tests/test_dispatcher/test_filters/test_builtin.py index 3d6ebb787e..472a1f7b17 100644 --- a/tests/test_dispatcher/test_filters/test_builtin.py +++ b/tests/test_dispatcher/test_filters/test_builtin.py @@ -139,3 +139,10 @@ async def test_commands_filter_not_checked(): start_filter = Command(commands=["help", BotCommand("about", "my desc")]) assert not await start_filter.check(message_with_command) + + +@pytest.mark.asyncio +async def test_commands_filter_not_checked(): + with pytest.raises(ValueError): + start_filter = Command(commands=42) # noqa +