fix tests

This commit is contained in:
Jakub Miazek
2024-03-20 13:33:56 +01:00
parent c0380029cb
commit f67c11f4ed
3 changed files with 182 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ async def test_add_user(client: AsyncClient):
claimset = jwt.decode(response.json()["access_token"], options={"verify_signature": False})
assert claimset["email"] == payload["email"]
assert claimset["expiry"] > 0
assert claimset["platform"] == "python-httpx/0.26.0"
assert claimset["platform"] == "python-httpx/0.27.0"
# TODO: parametrize test with diff urls including 404 and 401
@@ -25,7 +25,7 @@ async def test_get_token(client: AsyncClient):
claimset = jwt.decode(response.json()["access_token"], options={"verify_signature": False})
assert claimset["email"] == payload["email"]
assert claimset["expiry"] > 0
assert claimset["platform"] == "python-httpx/0.26.0"
assert claimset["platform"] == "python-httpx/0.27.0"
# TODO: baerer token test