feat: Initial commit for OnEver Drive centralized backup system with Windows PyQt6 agent and Proxmox LXC deployment
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import pytest_asyncio
|
||||
from app.core.database import engine, Base
|
||||
|
||||
@pytest_asyncio.fixture(autouse=True)
|
||||
async def clean_database():
|
||||
"""Drops and re-creates all tables before each test for total test isolation."""
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.drop_all)
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
yield
|
||||
Reference in New Issue
Block a user