Skip to content

Commit 4138502

Browse files
Copilotjb3
andcommitted
Apply ruff linting fixes
Co-authored-by: jb3 <[email protected]>
1 parent 25274c0 commit 4138502

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/bot/exts/backend/sync/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def test_sync_message_sent(self):
5858
(helpers.MockContext(), helpers.MockMessage()),
5959
)
6060

61-
for i, (ctx, message) in enumerate(subtests):
61+
for i, (ctx, _message) in enumerate(subtests):
6262
with self.subTest(test_case=i, has_ctx=ctx is not None):
6363
await TestSyncer.sync(self.guild, ctx)
6464

tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class MockScragly(helpers.HashableMixin):
276276

277277
def test_mock_class_with_hashable_mixin_uses_id_for_hashing(self):
278278
"""Test if the MagicMock subclasses that implement the HashableMixin use id for hash."""
279-
for i, mock in enumerate(self.hashable_mocks):
279+
for i, _mock in enumerate(self.hashable_mocks):
280280
with self.subTest(test_case=i):
281281
instance = helpers.MockRole(id=100)
282282
self.assertEqual(hash(instance), instance.id)

0 commit comments

Comments
 (0)