Skip to content

Commit

Permalink
tests: check which command name and alias exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Exirel committed Jan 20, 2022
1 parent 547e967 commit 3cba2bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ def test_8ball_default_provider(tmpconfig, botfactory):
assert isinstance(managers.manager.provider, choices.Classic)


def test_8ball_commands(mockbot):
assert mockbot.rules.has_command('8ball', follow_alias=False)
assert not mockbot.rules.has_command('8b', follow_alias=False)
assert mockbot.rules.has_command('8b', follow_alias=True)


def test_8ball_channel(irc, userfactory):
user = userfactory('Exirel')
irc.say(user, '#channel', '.8ball this is my query')
Expand Down

0 comments on commit 3cba2bf

Please sign in to comment.