chore: sync uncommitted working tree changes before clone cleanup

This commit is contained in:
CRM Bot
2026-06-10 20:52:56 +00:00
parent 3f5b7df178
commit 394a6e935d
44 changed files with 246 additions and 220 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
from __future__ import annotations
from datetime import UTC, datetime, timedelta
from datetime import datetime
import pytest
from httpx import AsyncClient
+3 -3
View File
@@ -3,9 +3,7 @@
from __future__ import annotations
import time
from datetime import timedelta
import pytest
from httpx import AsyncClient
from jose import jwt
@@ -203,6 +201,7 @@ async def test_db_user_has_hashed_password(
) -> None:
"""AC: DB-User wird mit gehashtem password_hash angelegt (kein Klartext)."""
from sqlalchemy import select
from app.models.user import User
async with session_factory() as session:
@@ -228,7 +227,8 @@ async def test_no_default_admin_on_startup(
client: AsyncClient, session_factory
) -> None:
"""AC: KEIN admin/admin Bootstrap-User beim App-Start (Frisch-DB = leer)."""
from sqlalchemy import select, func
from sqlalchemy import func, select
from app.models.user import User
# Fresh DB → no users
-1
View File
@@ -14,7 +14,6 @@ from typing import Any
import pytest
from httpx import AsyncClient
# =========================================================
# Helper
# =========================================================
-1
View File
@@ -12,7 +12,6 @@ from typing import Any
import pytest
from httpx import AsyncClient
# ---------------------------------------------------------------------------
# List of (method, path, payload, auth_required, expected_without_auth, expected_with_auth)
# ---------------------------------------------------------------------------
+2 -2
View File
@@ -4,7 +4,6 @@ from __future__ import annotations
from httpx import AsyncClient
# === /users/me ===
@@ -36,9 +35,10 @@ async def test_get_me_invalid_token_format(client: AsyncClient) -> None:
async def test_get_me_bogus_token(client: AsyncClient) -> None:
"""GET /api/v1/users/me with a token signed with the wrong key returns 401."""
from jose import jwt
import time
from jose import jwt
bogus = jwt.encode(
{
"sub": "1",