aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Thurisatic <[email protected]>2024-11-14 14:07:02 -0500
committerGravatar Thurisatic <[email protected]>2024-11-14 14:07:02 -0500
commitdcb1890f9134b52141008d2baf40e24ed872e5f0 (patch)
tree3d8977f115cd5112e074cd7a0476301ffdbbdb99 /tests
parentEnsure eval version buttons ascend in release date (diff)
Add eval output highlight language to support ANSI colors
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/utils/snekbox/test_snekbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/bot/exts/utils/snekbox/test_snekbox.py b/tests/bot/exts/utils/snekbox/test_snekbox.py
index 6a2ab5c24..9cfd75df8 100644
--- a/tests/bot/exts/utils/snekbox/test_snekbox.py
+++ b/tests/bot/exts/utils/snekbox/test_snekbox.py
@@ -312,7 +312,7 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
self.assertEqual(
ctx.send.call_args.args[0],
":warning: Your 3.12 eval job has completed "
- "with return code 0.\n\n```\n[No output]\n```"
+ "with return code 0.\n\n```ansi\n[No output]\n```"
)
allowed_mentions = ctx.send.call_args.kwargs["allowed_mentions"]
expected_allowed_mentions = AllowedMentions(everyone=False, roles=False, users=[ctx.author])
@@ -343,7 +343,7 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
ctx.send.call_args.args[0],
":white_check_mark: Your 3.12 eval job "
"has completed with return code 0."
- "\n\n```\nWay too long beard\n```\nFull output: lookatmybeard.com"
+ "\n\n```ansi\nWay too long beard\n```\nFull output: lookatmybeard.com"
)
self.cog.post_job.assert_called_once_with(job)
@@ -369,7 +369,7 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
self.assertEqual(
ctx.send.call_args.args[0],
":x: Your 3.12 eval job has completed with return code 127."
- "\n\n```\nERROR\n```"
+ "\n\n```ansi\nERROR\n```"
)
self.cog.post_job.assert_called_once_with(job)