mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
fix test
This commit is contained in:
parent
2e5b2e71c4
commit
9aa8ff7644
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user