(lock_file: str)
| 222 | |
| 223 | @pytest.mark.asyncio |
| 224 | async def test_context_manager_overrides_defaults(lock_file: str) -> None: |
| 225 | lock = AsyncReadWriteLock(lock_file, timeout=10.0, blocking=False, is_singleton=False) |
| 226 | async with lock.read_lock(timeout=5.0, blocking=True): |
| 227 | assert_mode_held(lock_file, "read") |
| 228 | async with lock.write_lock(timeout=5.0, blocking=True): |
| 229 | assert_mode_held(lock_file, "write") |
| 230 | await lock.close() |
| 231 | |
| 232 | |
| 233 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected