aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-02-18 18:23:38 +0100
committerGravatar GitHub <[email protected]>2020-02-18 18:23:38 +0100
commit33769405549efc3c0571cd1b2da5fa0b59ec742a (patch)
tree3715f54c16279499a9a3c6e54f0e650c47b85946 /tests
parentSnekbox small refactoring (diff)
Split assertion onto separate lines
Co-Authored-By: Mark <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_snekbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_snekbox.py b/tests/bot/cogs/test_snekbox.py
index 293efed0f..b5190cd7f 100644
--- a/tests/bot/cogs/test_snekbox.py
+++ b/tests/bot/cogs/test_snekbox.py
@@ -35,7 +35,8 @@ class SnekboxTests(unittest.TestCase):
@async_test
async def test_upload_output_reject_too_long(self):
"""Reject output longer than MAX_PASTE_LEN."""
- self.assertEqual(await self.cog.upload_output("-" * (snekbox.MAX_PASTE_LEN + 1)), "too long to upload")
+ result = await self.cog.upload_output("-" * (snekbox.MAX_PASTE_LEN + 1))
+ self.assertEqual(result, "too long to upload")
@async_test
async def test_upload_output(self):