test #9762
()
| 148 | |
| 149 | |
| 150 | async def test_with_for_update_async() -> None: |
| 151 | """test #9762""" |
| 152 | sess = AsyncSession() |
| 153 | ss = async_scoped_session( |
| 154 | async_sessionmaker(), scopefunc=asyncio.current_task |
| 155 | ) |
| 156 | |
| 157 | await sess.get(User, 1) |
| 158 | await sess.get(User, 1, with_for_update=True) |
| 159 | |
| 160 | await ss.get(User, 1) |
| 161 | await ss.get(User, 1, with_for_update=True) |
| 162 | |
| 163 | u1 = User() |
| 164 | await sess.refresh(u1) |
| 165 | await sess.refresh(u1, with_for_update=True) |
| 166 | |
| 167 | await ss.refresh(u1) |
| 168 | await ss.refresh(u1, with_for_update=True) |
| 169 | |
| 170 | |
| 171 | def test_exec_options() -> None: |
nothing calls this directly
no test coverage detected