test+web: fix test suite and remove redundant privacy checkbox
All checks were successful
CI / test (push) Successful in 25s
All checks were successful
CI / test (push) Successful in 25s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user