refactor 'as_user' on _join_invite

This commit is contained in:
Luna 2021-09-20 23:25:42 -03:00
parent 18a774dca6
commit 30d8ada7ed
1 changed files with 1 additions and 3 deletions

View File

@ -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