Skip to content

Commit

Permalink
squashme: use user.nick instead of hard-coded string in find tests
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Strzelecki <[email protected]>
  • Loading branch information
dgw and Exirel committed Sep 2, 2024
1 parent 580094c commit bba3bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/builtins/test_builtins_find.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ def channel():

@pytest.mark.parametrize('original, command, result', REPLACES_THAT_WORK)
def test_valid_replacements(bot, irc, user, channel, original, command, result):
irc.channel_joined(channel, ['User'])
irc.channel_joined(channel, [user.nick])

irc.say(user, channel, original)
irc.say(user, channel, command)

assert len(bot.backend.message_sent) == 1, (
"The bot should respond with exactly one line.")
assert bot.backend.message_sent == rawlist(
"PRIVMSG %s :User meant to say: %s" % (channel, result),
"PRIVMSG %s :%s meant to say: %s" % (channel, user.nick, result),
)

0 comments on commit bba3bd1

Please sign in to comment.