(self)
| 136 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 137 | |
| 138 | def tearDown(self) -> None: |
| 139 | import shutil |
| 140 | |
| 141 | os.environ.pop("FASTLED_LOCK_DB_PATH", None) |
| 142 | from ci.util.lock_database import _db_cache |
| 143 | |
| 144 | _db_cache.clear() |
| 145 | shutil.rmtree(self.temp_dir, ignore_errors=True) |
| 146 | |
| 147 | def test_cleanup_empty_cache(self) -> None: |
| 148 | """Cleanup on empty cache should return 0""" |