mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
fix test
This commit is contained in:
@@ -14,7 +14,7 @@ async def test_add_user(client: AsyncClient):
|
|||||||
claimset = jwt.decode(response.json()["access_token"], options={"verify_signature": False})
|
claimset = jwt.decode(response.json()["access_token"], options={"verify_signature": False})
|
||||||
assert claimset["email"] == payload["email"]
|
assert claimset["email"] == payload["email"]
|
||||||
assert claimset["expiry"] > 0
|
assert claimset["expiry"] > 0
|
||||||
assert claimset["platform"] == "python-httpx/0.24.1"
|
assert claimset["platform"] == "python-httpx/0.25.0"
|
||||||
|
|
||||||
|
|
||||||
# TODO: parametrize test with diff urls including 404 and 401
|
# 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})
|
claimset = jwt.decode(response.json()["access_token"], options={"verify_signature": False})
|
||||||
assert claimset["email"] == payload["email"]
|
assert claimset["email"] == payload["email"]
|
||||||
assert claimset["expiry"] > 0
|
assert claimset["expiry"] > 0
|
||||||
assert claimset["platform"] == "python-httpx/0.24.1"
|
assert claimset["platform"] == "python-httpx/0.25.0"
|
||||||
|
|
||||||
|
|
||||||
# TODO: baerer token test
|
# TODO: baerer token test
|
||||||
|
|||||||
Reference in New Issue
Block a user