MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_write_lock_helper

Method test_write_lock_helper

ci/tests/test_file_lock_rw.py:162–168  ·  view source on GitHub ↗

Test write_lock helper function

(self)

Source from the content-addressed store, hash-verified

160 self.assertFalse(db.is_held(str(lock_path)))
161
162 def test_write_lock_helper(self) -> None:
163 """Test write_lock helper function"""
164 test_file = Path(self.temp_dir) / "data.txt"
165 test_file.touch()
166
167 with write_lock(test_file, timeout=1.0) as lock:
168 self.assertIsNotNone(lock)
169
170 def test_read_lock_helper(self) -> None:
171 """Test read_lock helper function"""

Callers

nothing calls this directly

Calls 1

write_lockFunction · 0.90

Tested by

no test coverage detected