diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py index 53bd698a..e651077b 100644 --- a/tests/unit/test_commands.py +++ b/tests/unit/test_commands.py @@ -291,6 +291,18 @@ async def sub(_, *, string: str) -> None: @pytest.mark.asyncio async def test_group_commands() -> None: + @commands.group + async def foo(_): + ... + + assert isinstance(foo, commands.Group) + + @foo.command + async def bar(_): + ... + + assert isinstance(bar, commands.Command) + async with TheTestBot() as bot: cmd = None