From 30d8ada7ed6b941e825057866a8f167803ec9e28 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 20 Sep 2021 23:25:42 -0300 Subject: [PATCH] refactor 'as_user' on _join_invite --- tests/test_invites.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_invites.py b/tests/test_invites.py index 8e7146c..1c6786f 100644 --- a/tests/test_invites.py +++ b/tests/test_invites.py @@ -36,9 +36,7 @@ async def _create_invite(test_cli_user, guild, channel): async def _join_invite(test_cli_user, invite, user): - resp = await test_cli_user.post( - f'/api/v9/invites/{invite["code"]}', headers={"Authorization": user.token} - ) + resp = await test_cli_user.post(f'/api/v9/invites/{invite["code"]}', as_user=user) assert resp.status_code == 200