aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2019-11-09 10:54:26 +0100
committerGravatar kwzrd <[email protected]>2019-11-09 10:54:26 +0100
commitb87a98c7749edfeb9fbc368f2bf9a7ecb9434662 (patch)
tree1324d97a2aa435bf4a2fad8c3317a85539fd7353
parentAdjust docstring asterisk to backtick for consistency (diff)
Use range to build mock mentions list
-rw-r--r--tests/bot/rules/test_mentions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/rules/test_mentions.py b/tests/bot/rules/test_mentions.py
index 987a42c0a..e1a971dbb 100644
--- a/tests/bot/rules/test_mentions.py
+++ b/tests/bot/rules/test_mentions.py
@@ -19,7 +19,7 @@ class Case(NamedTuple):
def msg(author: str, total_mentions: int) -> FakeMessage:
"""Makes a message with `total_mentions` mentions."""
- return FakeMessage(author=author, mentions=[None] * total_mentions)
+ return FakeMessage(author=author, mentions=list(range(total_mentions)))
class TestMentions(unittest.TestCase):