aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-09-06 14:50:46 +0100
committerGravatar GitHub <[email protected]>2023-09-06 14:50:46 +0100
commit30853cc3558a419604f7775b546598f00a2a8598 (patch)
treead2310a8b920d386d3f04ef154826da49779cd69 /tests
parentBump HassanAbouelela/actions from setup-python_v1.4.1 to 1.4.2 (#2744) (diff)
Bump ruff from 0.0.285 to 0.0.287 (#2745)
* Bump ruff from 0.0.285 to 0.0.287 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.285 to 0.0.287. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.285...v0.0.287) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update bot to comply with ruff 0.0.287 linting rules --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/test_cogs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bot/exts/test_cogs.py b/tests/bot/exts/test_cogs.py
index 99bc87120..0c117b3e6 100644
--- a/tests/bot/exts/test_cogs.py
+++ b/tests/bot/exts/test_cogs.py
@@ -62,8 +62,7 @@ class CommandNameTests(unittest.TestCase):
"""Yield all commands for all cogs in all extensions."""
for module in self.walk_modules():
for cog in self.walk_cogs(module):
- for cmd in self.walk_commands(cog):
- yield cmd
+ yield from self.walk_commands(cog)
def test_names_dont_shadow(self):
"""Names and aliases of commands should be unique."""