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

Function fake_acquire

tests/test_read_write_unit.py:437–440  ·  view source on GitHub ↗
(blocking: bool = True, timeout: float = -1)

Source from the content-addressed store, hash-verified

435 mock_lock = mocker.MagicMock()
436
437 def fake_acquire(blocking: bool = True, timeout: float = -1) -> bool:
438 lock._lock_level = 1
439 lock._current_mode = "read"
440 return real_lock.acquire(blocking, timeout)
441
442 mock_lock.acquire = fake_acquire
443 mock_lock.release = real_lock.release

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…