Changes are committed on successful exit from the `with` block.
(aconn)
| 63 | |
| 64 | |
| 65 | async def test_commit_on_successful_exit(aconn): |
| 66 | """Changes are committed on successful exit from the `with` block.""" |
| 67 | async with aconn.transaction(): |
| 68 | await insert_row(aconn, "foo") |
| 69 | |
| 70 | assert not in_transaction(aconn) |
| 71 | assert await inserted(aconn) == {"foo"} |
| 72 | |
| 73 | |
| 74 | async def test_rollback_on_exception_exit(aconn): |
nothing calls this directly
no test coverage detected