Skip to content

Commit bba3bd1

Browse files
dgwExirel
andcommitted
squashme: use user.nick instead of hard-coded string in find tests
Co-authored-by: Florian Strzelecki <[email protected]>
1 parent 580094c commit bba3bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/builtins/test_builtins_find.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ def channel():
4949

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

5454
irc.say(user, channel, original)
5555
irc.say(user, channel, command)
5656

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

0 commit comments

Comments
 (0)