aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-22 20:44:48 -0700
committerGravatar MarkKoz <[email protected]>2020-08-22 20:44:48 -0700
commit520ac0f9871bf6775d76eea753ed2a940704e92d (patch)
tree5088262bc58568a66fd5c281c7b37c189e7434ea
parentReplace alias command definitions with root_aliases (diff)
Include root aliases in the command name conflict test
-rw-r--r--tests/bot/cogs/test_cogs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bot/cogs/test_cogs.py b/tests/bot/cogs/test_cogs.py
index fdda59a8f..30a04422a 100644
--- a/tests/bot/cogs/test_cogs.py
+++ b/tests/bot/cogs/test_cogs.py
@@ -53,6 +53,7 @@ class CommandNameTests(unittest.TestCase):
"""Return a list of all qualified names, including aliases, for the `command`."""
names = [f"{command.full_parent_name} {alias}".strip() for alias in command.aliases]
names.append(command.qualified_name)
+ names += getattr(command, "root_aliases", [])
return names