(lock_file: str)
| 132 | |
| 133 | |
| 134 | def test_init_sets_attributes(lock_file: str) -> None: |
| 135 | lock = ReadWriteLock(lock_file, timeout=5.0, blocking=False, is_singleton=False) |
| 136 | assert (lock.lock_file, lock.timeout) == (lock_file, pytest.approx(5.0)) |
| 137 | assert lock.blocking is False |
| 138 | assert lock._hold.level == 0 |
| 139 | assert lock._hold.mode is None |
| 140 | assert lock._hold.write_thread_id is None |
| 141 | assert Path(lock_file).is_file() |
| 142 | |
| 143 | |
| 144 | def test_write_lock_context_manager_overrides_defaults(lock_file: str) -> None: |
nothing calls this directly
no test coverage detected