diff options
author | 2020-03-13 17:32:16 -0700 | |
---|---|---|
committer | 2020-03-13 17:32:16 -0700 | |
commit | f105ae75a98ae3e0295352d7debbc4fe04c73afd (patch) | |
tree | f43776d501e7b9a762fcf7ac8944b12cb0acbc0f | |
parent | Cog tests: add a test for duplicate command names & aliases (diff) |
Cog tests: fix leading space in aliases without parents
-rw-r--r-- | tests/bot/cogs/test_cogs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_cogs.py b/tests/bot/cogs/test_cogs.py index 616f5f44a..cbd203786 100644 --- a/tests/bot/cogs/test_cogs.py +++ b/tests/bot/cogs/test_cogs.py @@ -46,7 +46,7 @@ class CommandNameTests(unittest.TestCase): @staticmethod def get_qualified_names(command: commands.Command) -> t.List[str]: """Return a list of all qualified names, including aliases, for the `command`.""" - names = [f"{command.full_parent_name} {alias}" for alias in command.aliases] + names = [f"{command.full_parent_name} {alias}".strip() for alias in command.aliases] names.append(command.qualified_name) return names |