Skip to content

Commit

Permalink
tell: example tests for the error cases
Browse files Browse the repository at this point in the history
Can't put nickname commands here because the pytest plugin doesn't
handle them. That'll be a future patch...
  • Loading branch information
dgw committed Mar 6, 2022
1 parent 6bab4b2 commit 7ca858a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sopel/modules/tell.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def _format_safe_lstrip(text):

@plugin.command('tell', 'ask')
@plugin.nickname_command('tell', 'ask')
@plugin.example('$nickname, tell dgw he broke something again.')
@plugin.example('$nickname, tell dgw he broke it again.', user_help=True)
@plugin.example('.tell ', 'tell whom?')
@plugin.example('.ask Exirel ', 'ask Exirel what?')
def f_remind(bot, trigger):
"""Give someone a message the next time they're seen"""
teller = trigger.nick
Expand Down

0 comments on commit 7ca858a

Please sign in to comment.