fixed tests

This commit is contained in:
ebby 2026-09-25 20:46:47 +02:00
parent 4b07853762
commit 26a16388f2
5 changed files with 4 additions and 4 deletions

BIN
.coverage Normal file

Binary file not shown.

View file

@ -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"}},

View file

@ -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"