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

Method setUp

ci/tests/test_file_lock_rw.py:200–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 """Test automatic stale lock recovery during acquisition"""
199
200 def setUp(self) -> None:
201 self.temp_dir = tempfile.mkdtemp()
202 self.db_path = Path(self.temp_dir) / "test_locks.db"
203 self.db = LockDatabase(self.db_path)
204 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
205
206 def tearDown(self) -> None:
207 import shutil

Callers

nothing calls this directly

Calls 1

LockDatabaseClass · 0.90

Tested by

no test coverage detected