diff options
| author | 2020-10-01 12:55:00 +0800 | |
|---|---|---|
| committer | 2020-10-01 12:55:00 +0800 | |
| commit | 929e8352553bbe90a196548c9afabd0ef63bd98e (patch) | |
| tree | efb3d6bca4bfb1a83329863e04bdf245a73b429c /tests | |
| parent | PR #1191 Verification: broaden 50_007 error handling (diff) | |
Fuzzy match roles for `!role` command.
An arbitrary cutoff score of 80 is chosen because it works. A bug in
the test for the same command is also fixed.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/exts/info/test_information.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/exts/info/test_information.py b/tests/bot/exts/info/test_information.py index d3f2995fb..7bc7dbb5d 100644 --- a/tests/bot/exts/info/test_information.py +++ b/tests/bot/exts/info/test_information.py @@ -68,7 +68,7 @@ class InformationCogTests(unittest.TestCase): permissions=discord.Permissions(0), ) - self.ctx.guild.roles.append([dummy_role, admin_role]) + self.ctx.guild.roles.extend([dummy_role, admin_role]) self.cog.role_info.can_run = unittest.mock.AsyncMock() self.cog.role_info.can_run.return_value = True |