Skip to content

Commit d1a98bc

Browse files
rdmcdCopilot
authored andcommitted
Copilot Fix
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 849d558 commit d1a98bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/tests/unit/community_manager/actions/test_refresh_external_sources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ async def test_refresh_external_sources__removed_user_is_kicked(
6060
await action.refresh_external_sources()
6161

6262
# User 1002 was removed from the API response and should be kicked
63-
assert mock_kick.call_count == 1
64-
kicked_member = mock_kick.call_args.args[0]
63+
mock_kick.assert_awaited_once()
64+
kicked_member = mock_kick.await_args.args[0]
6565
assert kicked_member.user.telegram_id == 1002
6666
assert kicked_member.chat_id == chat.id
6767

@@ -108,4 +108,4 @@ async def test_refresh_external_sources__no_removed_users__no_kicks(
108108
) as mock_kick:
109109
await action.refresh_external_sources()
110110

111-
assert mock_kick.call_count == 0
111+
mock_kick.assert_not_awaited()

0 commit comments

Comments
 (0)