Skip to content

Commit

Permalink
Add tests for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Dec 21, 2023
1 parent 6db5147 commit 4c3644d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4c3644d

Please sign in to comment.