From 4c3644d0f63d832453d4b2d710fbc049c020e41b Mon Sep 17 00:00:00 2001 From: Gobot1234 Date: Thu, 21 Dec 2023 13:00:35 +0000 Subject: [PATCH] Add tests for previous commit --- tests/unit/test_commands.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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