test+web: fix test suite and remove redundant privacy checkbox
All checks were successful
CI / test (push) Successful in 25s

This commit is contained in:
2026-03-08 12:16:21 +03:00
parent 79baadb522
commit fc7a9cc3a6
4 changed files with 7 additions and 19 deletions

View File

@@ -21,8 +21,11 @@ from app.main import app
@pytest.fixture(autouse=True)
async def reset_db() -> None:
await engine.dispose()
test_db_path = PROJECT_ROOT / "test.db"
if test_db_path.exists():
test_db_path.unlink()
async with engine.begin() as conn:
await conn.run_sync(Base.metadata.drop_all)
await conn.run_sync(Base.metadata.create_all)
yield