Fix tests using the new api root

This commit is contained in:
2026-06-24 15:54:06 +02:00
parent bc663582b5
commit 17842a14fd
7 changed files with 56 additions and 56 deletions

View File

@@ -68,7 +68,7 @@ def regular_user(db_session):
def auth_headers(client, admin_user):
"""Get authentication headers for admin user."""
response = client.post(
"/token",
"/api/v1/token",
data={"username": admin_user.name, "password": "admin123"}
)
token = response.json()["access_token"]
@@ -79,7 +79,7 @@ def auth_headers(client, admin_user):
def user_auth_headers(client, regular_user):
"""Get authentication headers for regular user."""
response = client.post(
"/token",
"/api/v1/token",
data={"username": regular_user.name, "password": "user123"}
)
token = response.json()["access_token"]