mirror of https://gitlab.com/litecord/litecord.git
refactor 'as_user' on _join_invite
This commit is contained in:
parent
18a774dca6
commit
30d8ada7ed
|
|
@ -36,9 +36,7 @@ async def _create_invite(test_cli_user, guild, channel):
|
||||||
|
|
||||||
|
|
||||||
async def _join_invite(test_cli_user, invite, user):
|
async def _join_invite(test_cli_user, invite, user):
|
||||||
resp = await test_cli_user.post(
|
resp = await test_cli_user.post(f'/api/v9/invites/{invite["code"]}', as_user=user)
|
||||||
f'/api/v9/invites/{invite["code"]}', headers={"Authorization": user.token}
|
|
||||||
)
|
|
||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue