Transaction exposes its connection as a read-only property.
(aconn)
| 27 | |
| 28 | |
| 29 | async def test_exposes_associated_connection(aconn): |
| 30 | """Transaction exposes its connection as a read-only property.""" |
| 31 | async with aconn.transaction() as tx: |
| 32 | assert tx.connection is aconn |
| 33 | with pytest.raises(AttributeError): |
| 34 | tx.connection = aconn |
| 35 | |
| 36 | |
| 37 | async def test_exposes_savepoint_name(aconn): |
nothing calls this directly
no test coverage detected