aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-04-02 22:51:01 +0100
committerGravatar Chris Lovering <[email protected]>2022-04-18 17:46:17 +0100
commit4a9e2819929908182f8c6a148502671f281357ca (patch)
treec55aa281cff88e15d7b148e120a23cf350fe28d3
parentRemove sync cog init test (diff)
Don't try to overwrite a read-only attr in help command test
-rw-r--r--tests/bot/exts/info/test_help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/exts/info/test_help.py b/tests/bot/exts/info/test_help.py
index 604c69671..21d124f3a 100644
--- a/tests/bot/exts/info/test_help.py
+++ b/tests/bot/exts/info/test_help.py
@@ -1,4 +1,5 @@
import unittest
+import unittest.mock
import rapidfuzz
@@ -12,7 +13,6 @@ class HelpCogTests(unittest.IsolatedAsyncioTestCase):
self.bot = MockBot()
self.cog = help.Help(self.bot)
self.ctx = MockContext(bot=self.bot)
- self.bot.help_command.context = self.ctx
@autospec(help.CustomHelpCommand, "get_all_help_choices", return_value={"help"}, pass_mocks=False)
async def test_help_fuzzy_matching(self):