refactor: clean up imports and enhance test setup for user token retrieval

This commit is contained in:
grillazz
2026-01-11 08:37:48 +01:00
parent e9ea2c627a
commit 5080eda3ac
3 changed files with 19 additions and 10 deletions

View File

@@ -2,12 +2,11 @@ from collections.abc import AsyncGenerator
from typing import Any
import pytest
from fastapi.exceptions import ResponseValidationError
from httpx import ASGITransport, AsyncClient
from sqlalchemy import text
from sqlalchemy.exc import ProgrammingError, SQLAlchemyError
from sqlalchemy.exc import ProgrammingError
from app.database import engine, get_db, test_engine, TestAsyncSessionFactory
from app.database import TestAsyncSessionFactory, engine, get_db, test_engine
from app.main import app
from app.models.base import Base
from app.redis import get_redis