(lock_file: str)
| 65 | |
| 66 | |
| 67 | def test_properties(lock_file: str) -> None: |
| 68 | executor = ThreadPoolExecutor(max_workers=1) |
| 69 | lock = AsyncReadWriteLock(lock_file, timeout=5.0, blocking=False, is_singleton=False, executor=executor) |
| 70 | assert (lock.lock_file, lock.timeout) == (lock_file, pytest.approx(5.0)) |
| 71 | assert lock.blocking is False |
| 72 | assert lock.loop is None |
| 73 | assert lock.executor is executor |
| 74 | executor.shutdown(wait=False) |
| 75 | |
| 76 | |
| 77 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected