(self)
| 128 | """Test stale lock cleanup""" |
| 129 | |
| 130 | def setUp(self) -> None: |
| 131 | self.temp_dir = tempfile.mkdtemp() |
| 132 | self.cache_dir = Path(self.temp_dir) / "cache" |
| 133 | self.cache_dir.mkdir() |
| 134 | self.db_path = Path(self.temp_dir) / "test_locks.db" |
| 135 | self.db = LockDatabase(self.db_path) |
| 136 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 137 | |
| 138 | def tearDown(self) -> None: |
| 139 | import shutil |
nothing calls this directly
no test coverage detected