diff options
| author | 2020-08-26 09:25:22 +0700 | |
|---|---|---|
| committer | 2020-08-26 09:25:22 +0700 | |
| commit | 04cafc66d2e8067f9c94b111f5dac6e7dd915e1e (patch) | |
| tree | 6dbbc82730f7b29b090cf0067de793563f878d04 /tests | |
| parent | Merge pull request #1128 from python-discord/bold_link (diff) | |
| parent | Merge branch 'master' into feat/backend/707/alias-decorator (diff) | |
Merge pull request #1124 from python-discord/feat/backend/707/alias-decorator
Support specifying top-level aliases in the command decorator
Diffstat (limited to 'tests')
| -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 |