(self)
| 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 |
nothing calls this directly
no test coverage detected