MCPcopy Create free account
hub / github.com/tox-dev/filelock / test_properties

Function test_properties

tests/sqlite/test_async_executor.py:67–74  ·  view source on GitHub ↗
(lock_file: str)

Source from the content-addressed store, hash-verified

65
66
67def 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

Callers

nothing calls this directly

Calls 1

AsyncReadWriteLockClass · 0.90

Tested by

no test coverage detected