Skip to content

Commit

Permalink
Update test_user.py according feedback
Browse files Browse the repository at this point in the history
Co-authored-by: Dimosthenis Schizas <dimoschi@gmail.com>
  • Loading branch information
janssensjelle and dimoschi authored Nov 21, 2024
1 parent c1d5805 commit 24b2b86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/src/cmds/core/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ async def test_kick_success(self, ctx, bot):
user_to_kick.send = AsyncMock()
user_to_kick.name = "User to Kick"

with patch('src.cmds.core.user.add_evidence_note', new_callable=AsyncMock) as add_evidence_mock, \
patch('src.cmds.core.user.member_is_staff', return_value=False):
with (
patch('src.cmds.core.user.add_evidence_note', new_callable=AsyncMock) as add_evidence_mock,
patch('src.cmds.core.user.member_is_staff', return_value=False
):
cog = user.UserCog(bot)
await cog.kick.callback(cog, ctx, user_to_kick, "Violation of rules")

Expand Down

0 comments on commit 24b2b86

Please sign in to comment.