feat: local storage logic & endpoints
This commit is contained in:
@@ -10,7 +10,7 @@ from collections.abc import AsyncIterator
|
||||
|
||||
import pytest
|
||||
from app.core.security import Argon2PasswordHasher
|
||||
from app.infrastructure.db import Base, get_engine, session_scope
|
||||
from app.infrastructure.db import Base, dispose_engine, get_engine, session_scope
|
||||
from app.infrastructure.db.repositories import (
|
||||
SqlAlchemyRefreshTokenRepository,
|
||||
SqlAlchemyUserRepository,
|
||||
@@ -73,6 +73,7 @@ async def api() -> AsyncIterator[AsyncClient]:
|
||||
|
||||
async with get_engine().begin() as conn:
|
||||
await conn.run_sync(Base.metadata.drop_all)
|
||||
await dispose_engine()
|
||||
|
||||
|
||||
async def _login(api: AsyncClient, username: str, password: str) -> tuple[str, str]:
|
||||
|
||||
Reference in New Issue
Block a user