Add the ability to choose the database path at startup. Add more tests. Add bandit
All checks were successful
CI / test (push) Successful in 3m49s
Lint / test (push) Successful in 29s
Trivy / test (push) Successful in 21s

This commit is contained in:
Miguel Jacq 2025-11-17 15:15:00 +11:00
parent 8c7226964a
commit 6bc5b66d3f
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
16 changed files with 297 additions and 97 deletions

View file

@ -33,10 +33,10 @@ def isolate_qsettings(tmp_path_factory):
def tmp_db_cfg(tmp_path):
from bouquin.db import DBConfig
db_path = tmp_path / "notebook.db"
default_db = tmp_path / "notebook.db"
key = "test-secret-key"
return DBConfig(
path=db_path, key=key, idle_minutes=0, theme="light", move_todos=True
path=default_db, key=key, idle_minutes=0, theme="light", move_todos=True
)