diff options
author | 2022-04-02 22:51:01 +0100 | |
---|---|---|
committer | 2022-04-18 17:46:17 +0100 | |
commit | 4a9e2819929908182f8c6a148502671f281357ca (patch) | |
tree | c55aa281cff88e15d7b148e120a23cf350fe28d3 | |
parent | Remove 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.py | 2 |
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): |