Transaction does not begin until __enter__() is called.
(aconn, apipeline)
| 52 | |
| 53 | |
| 54 | async def test_begins_on_enter(aconn, apipeline): |
| 55 | class="st">""class="st">"Transaction does not begin until __enter__() is called."class="st">"" |
| 56 | tx = aconn.transaction() |
| 57 | assert not in_transaction(aconn) |
| 58 | async with tx: |
| 59 | if apipeline: |
| 60 | await apipeline.sync() |
| 61 | assert in_transaction(aconn) |
| 62 | assert not in_transaction(aconn) |
| 63 | |
| 64 | |
| 65 | async def test_commit_on_successful_exit(aconn): |
nothing calls this directly
no test coverage detected