Skip to content

Commit

Permalink
Fix Pytest warning
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 16, 2018
1 parent a211fe7 commit 65bbe2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_chatcommands.py
Expand Up @@ -19,17 +19,17 @@
def test_coffee():
msg = Fake({"owner": {"name": "El'endia Starman"}})

coffees = "\*brews a cup of ({}) for ".format("|".join(chatcommands.COFFEES))
assert regex.match(coffees + "@El'endiaStarman\*", chatcommands.coffee(None, original_msg=msg))
assert regex.match(coffees + "@angussidney\*", chatcommands.coffee("angussidney"))
coffees = "\\*brews a cup of ({}) for ".format("|".join(chatcommands.COFFEES))
assert regex.match(coffees + "@El'endiaStarman\\*", chatcommands.coffee(None, original_msg=msg))
assert regex.match(coffees + "@angussidney\\*", chatcommands.coffee("angussidney"))


def test_tea():
msg = Fake({"owner": {"name": "El'endia Starman"}})

teas = "\*brews a cup of ({}) tea for ".format("|".join(chatcommands.TEAS))
assert regex.match(teas + "@El'endiaStarman\*", chatcommands.tea(None, original_msg=msg))
assert regex.match(teas + "@angussidney\*", chatcommands.tea("angussidney"))
teas = "\\*brews a cup of ({}) tea for ".format("|".join(chatcommands.TEAS))
assert regex.match(teas + "@El'endiaStarman\\*", chatcommands.tea(None, original_msg=msg))
assert regex.match(teas + "@angussidney\\*", chatcommands.tea("angussidney"))


def test_lick():
Expand Down

0 comments on commit 65bbe2f

Please sign in to comment.