aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-02-26 14:06:50 +0000
committerGravatar GitHub <[email protected]>2023-02-26 14:06:50 +0000
commit579969caa2859abba098b2e82669074b5464202e (patch)
tree495c801f5ec47944765ffd720baa873244e80867 /tests
parentMerge pull request #2409 from shtlrs/bump-isort-in-precommit (diff)
parentFix timeit commands with backticks after command name (diff)
Merge pull request #2415 from python-discord/timeit-backticks
Fix timeit commands with backticks after command name
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/backend/test_error_handler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/bot/exts/backend/test_error_handler.py b/tests/bot/exts/backend/test_error_handler.py
index adb0252a5..092de0556 100644
--- a/tests/bot/exts/backend/test_error_handler.py
+++ b/tests/bot/exts/backend/test_error_handler.py
@@ -47,7 +47,7 @@ class ErrorHandlerTests(unittest.IsolatedAsyncioTestCase):
)
self.cog.try_silence = AsyncMock()
self.cog.try_get_tag = AsyncMock()
- self.cog.try_run_eval = AsyncMock(return_value=False)
+ self.cog.try_run_fixed_codeblock = AsyncMock(return_value=False)
for case in test_cases:
with self.subTest(try_silence_return=case["try_silence_return"], try_get_tag=case["called_try_get_tag"]):
@@ -75,7 +75,7 @@ class ErrorHandlerTests(unittest.IsolatedAsyncioTestCase):
self.cog.try_silence = AsyncMock()
self.cog.try_get_tag = AsyncMock()
- self.cog.try_run_eval = AsyncMock()
+ self.cog.try_run_fixed_codeblock = AsyncMock()
error = errors.CommandNotFound()
@@ -83,7 +83,7 @@ class ErrorHandlerTests(unittest.IsolatedAsyncioTestCase):
self.cog.try_silence.assert_not_awaited()
self.cog.try_get_tag.assert_not_awaited()
- self.cog.try_run_eval.assert_not_awaited()
+ self.cog.try_run_fixed_codeblock.assert_not_awaited()
self.ctx.send.assert_not_awaited()
async def test_error_handler_user_input_error(self):