Transaction exposes its savepoint name as a read-only property.
(aconn)
| 35 | |
| 36 | |
| 37 | async def test_exposes_savepoint_name(aconn): |
| 38 | """Transaction exposes its savepoint name as a read-only property.""" |
| 39 | async with aconn.transaction(savepoint_name="foo") as tx: |
| 40 | assert tx.savepoint_name == "foo" |
| 41 | with pytest.raises(AttributeError): |
| 42 | tx.savepoint_name = "bar" |
| 43 | |
| 44 | |
| 45 | async def test_cant_reenter(aconn): |
nothing calls this directly
no test coverage detected