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

Method setUp

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

Source from the content-addressed store, hash-verified

46 """Test stale lock detection via database"""
47
48 def setUp(self) -> None:
49 self.temp_dir = tempfile.mkdtemp()
50 self.db_path = Path(self.temp_dir) / "test_locks.db"
51 self.db = LockDatabase(self.db_path)
52 # Set env var to use our test DB
53 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
54
55 def tearDown(self) -> None:
56 import shutil

Callers

nothing calls this directly

Calls 1

LockDatabaseClass · 0.90

Tested by

no test coverage detected