(lock_type: type[BaseAsyncFileLock], thread_local: bool, tmp_path: Path)
| 152 | @pytest.mark.parametrize("thread_local", [True, False]) |
| 153 | @pytest.mark.asyncio |
| 154 | async def test_non_executor(lock_type: type[BaseAsyncFileLock], thread_local: bool, tmp_path: Path) -> None: |
| 155 | lock_path = tmp_path / "a" |
| 156 | lock = lock_type(str(lock_path), thread_local=thread_local, run_in_executor=False) |
| 157 | async with lock as locked: |
| 158 | assert lock.is_locked |
| 159 | assert lock is locked |
| 160 | assert not lock.is_locked |
| 161 | |
| 162 | |
| 163 | @pytest.mark.asyncio |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…