aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-09-19 22:57:54 +0100
committerGravatar Amrou Bellalouna <[email protected]>2022-09-19 22:57:54 +0100
commitae0c94b1d4dc676519301fe67a21425e5649effe (patch)
treedd886f3bfddca6da0a0bde7b34a6aa80bfc997ee /tests
parentfix redundant test name (diff)
add DEFAULT_RULES_DESCRIPTION to avoid duplication
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/info/test_information.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/bot/exts/info/test_information.py b/tests/bot/exts/info/test_information.py
index 626c12c86..c0cfac430 100644
--- a/tests/bot/exts/info/test_information.py
+++ b/tests/bot/exts/info/test_information.py
@@ -7,6 +7,7 @@ from textwrap import shorten
import discord
from bot import constants
+from bot.constants import DEFAULT_RULES_DESCRIPTION
from bot.exts.info import information
from bot.utils.checks import InWhitelistCheckFailure
from tests import helpers
@@ -639,14 +640,8 @@ class RuleCommandTests(unittest.IsolatedAsyncioTestCase):
(("hello", "999"), None),
]
- description = (
- "The rules and guidelines that apply to this community can be found on"
- " our [rules page](https://www.pythondiscord.com/pages/rules). We expect"
- " all members of the community to have read and understood these."
- )
-
for raw_user_input, expected_matched_rule_numbers in test_cases:
final_rule_numbers = await self.cog.rules(self.cog, self.ctx, *raw_user_input)
embed = self.ctx.send.call_args.kwargs['embed']
- self.assertEqual(description, embed.description)
+ self.assertEqual(DEFAULT_RULES_DESCRIPTION, embed.description)
self.assertEqual(expected_matched_rule_numbers, final_rule_numbers)