(lock_file: str)
| 47 | |
| 48 | @pytest.mark.asyncio |
| 49 | async def test_acquire_release_write(lock_file: str) -> None: |
| 50 | lock = AsyncReadWriteLock(lock_file, is_singleton=False) |
| 51 | await lock.acquire_write() |
| 52 | assert lock._lock._lock_level == 1 |
| 53 | assert lock._lock._current_mode == "write" |
| 54 | await lock.release() |
| 55 | assert lock._lock._lock_level == 0 |
| 56 | assert lock._lock._current_mode is None |
| 57 | |
| 58 | |
| 59 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected
searching dependent graphs…