(lock_file: str)
| 212 | |
| 213 | @pytest.mark.asyncio |
| 214 | async def test_context_manager_uses_instance_defaults(lock_file: str) -> None: |
| 215 | lock = AsyncReadWriteLock(lock_file, timeout=3.0, blocking=True, is_singleton=False) |
| 216 | async with lock.read_lock(): |
| 217 | assert_mode_held(lock_file, "read") |
| 218 | async with lock.write_lock(): |
| 219 | assert_mode_held(lock_file, "write") |
| 220 | await lock.close() |
| 221 | |
| 222 | |
| 223 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected