add migration and enable ci
All checks were successful
Backend CI / unit-test (push) Successful in 1m40s

This commit is contained in:
2025-09-13 21:14:14 +02:00
parent 738df559cb
commit 616232b76d
4 changed files with 118 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ def test_rollback_on_exception() -> None:
s.exec(text("CREATE TABLE IF NOT EXISTS t_rb (id INTEGER PRIMARY KEY, val TEXT);"))
s.exec(text("INSERT INTO t_rb (val) VALUES (:v)").bindparams(v="will_rollback"))
# simulate handler error -> should trigger rollback in get_session
raise RuntimeError("simulated failure") # noqa: TRY003, EM101
raise RuntimeError("simulated failure")
# New session should not see the inserted row
with session_ctx(db) as s2: