diff options
| author | 2019-11-09 10:54:26 +0100 | |
|---|---|---|
| committer | 2019-11-09 10:54:26 +0100 | |
| commit | b87a98c7749edfeb9fbc368f2bf9a7ecb9434662 (patch) | |
| tree | 1324d97a2aa435bf4a2fad8c3317a85539fd7353 /tests | |
| parent | Adjust docstring asterisk to backtick for consistency (diff) | |
Use range to build mock mentions list
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/rules/test_mentions.py | 2 | 
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): | 
