diff options
| author | 2020-08-22 20:44:48 -0700 | |
|---|---|---|
| committer | 2020-08-22 20:44:48 -0700 | |
| commit | 520ac0f9871bf6775d76eea753ed2a940704e92d (patch) | |
| tree | 5088262bc58568a66fd5c281c7b37c189e7434ea | |
| parent | Replace alias command definitions with root_aliases (diff) | |
Include root aliases in the command name conflict test
| -rw-r--r-- | tests/bot/cogs/test_cogs.py | 1 |
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 |