(aconn)
| 130 | |
| 131 | |
| 132 | async def test_interaction_dbapi_transaction(aconn): |
| 133 | await insert_row(aconn, "foo") |
| 134 | |
| 135 | async with aconn.transaction(): |
| 136 | await insert_row(aconn, "bar") |
| 137 | raise Rollback |
| 138 | |
| 139 | async with aconn.transaction(): |
| 140 | await insert_row(aconn, "baz") |
| 141 | |
| 142 | assert in_transaction(aconn) |
| 143 | await aconn.commit() |
| 144 | assert await inserted(aconn) == {"foo", "baz"} |
| 145 | |
| 146 | |
| 147 | async def test_prohibits_use_of_commit_rollback_autocommit(aconn): |
nothing calls this directly
no test coverage detected