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

Method setUp

ci/tests/test_stale_lock_recovery.py:29–35  ·  view source on GitHub ↗

Create temporary directory for test locks.

(self)

Source from the content-addressed store, hash-verified

27 """Test suite for stale lock detection and recovery."""
28
29 def setUp(self) -> None:
30 """Create temporary directory for test locks."""
31 self.temp_dir = Path(tempfile.mkdtemp())
32 self.lock_path = self.temp_dir / "test.lock"
33 self.db_path = self.temp_dir / "test_locks.db"
34 self.db = LockDatabase(self.db_path)
35 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
36
37 def tearDown(self) -> None:
38 """Clean up test files."""

Callers

nothing calls this directly

Calls 1

LockDatabaseClass · 0.90

Tested by

no test coverage detected