aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2020-10-01 12:55:00 +0800
committerGravatar kosayoda <[email protected]>2020-10-01 12:55:00 +0800
commit929e8352553bbe90a196548c9afabd0ef63bd98e (patch)
treeefb3d6bca4bfb1a83329863e04bdf245a73b429c /tests
parentPR #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.py2
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