fixed tests
This commit is contained in:
parent
4b07853762
commit
26a16388f2
5 changed files with 4 additions and 4 deletions
BIN
.coverage
Normal file
BIN
.coverage
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -14,7 +14,7 @@ from sqlmodel import Session
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|
||||||
router = APIRouter(
|
router = APIRouter(
|
||||||
prefix="/",
|
prefix="",
|
||||||
tags=[""],
|
tags=[""],
|
||||||
dependencies=[],
|
dependencies=[],
|
||||||
responses={404: {"description": "Not found"}},
|
responses={404: {"description": "Not found"}},
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -76,9 +76,9 @@ def test_login_successful(session: Session, client: TestClient):
|
||||||
}
|
}
|
||||||
|
|
||||||
response = client.post(
|
response = client.post(
|
||||||
url="/users/login",
|
url="/login",
|
||||||
data=payload
|
data=payload
|
||||||
)
|
)
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 201
|
||||||
assert response.json() == "token"
|
assert response.json()[:2] == "ey"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue