Skip to content

Commit

Permalink
Formatting changes. Wow, Jenkins has gotten --pedantic.
Browse files Browse the repository at this point in the history
  • Loading branch information
mubiquity committed Dec 10, 2018
1 parent 4bb2ded commit fe73f3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_trivia.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from test.conftest import MockUQCSBot, TEST_CHANNEL_ID


def test_trivia_multiple(uqcsbot: MockUQCSBot):
"""
Tests !trivia with the multiple choice option
Expand All @@ -10,6 +11,7 @@ def test_trivia_multiple(uqcsbot: MockUQCSBot):

assert len(messages) == 6


def test_trivia_boolean(uqcsbot: MockUQCSBot):
"""
Tests !trivia with the true/false option
Expand All @@ -20,11 +22,12 @@ def test_trivia_boolean(uqcsbot: MockUQCSBot):

assert len(messages) == 4


def test_bad_input(uqcsbot: MockUQCSBot):
uqcsbot.post_message(TEST_CHANNEL_ID, "!trivia -d easp")
uqcsbot.post_message(TEST_CHANNEL_ID, "!trivia -c -22")
uqcsbot.post_message(TEST_CHANNEL_ID, "!trivia -t raspberry")

messages = uqcsbot.test_messages.get(TEST_CHANNEL_ID, [])

assert len(messages) == 6
assert len(messages) == 6

0 comments on commit fe73f3b

Please sign in to comment.