(self)
| 86 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 87 | |
| 88 | def tearDown(self) -> None: |
| 89 | import shutil |
| 90 | |
| 91 | os.environ.pop("FASTLED_LOCK_DB_PATH", None) |
| 92 | from ci.util.lock_database import _db_cache |
| 93 | |
| 94 | _db_cache.clear() |
| 95 | shutil.rmtree(self.temp_dir, ignore_errors=True) |
| 96 | |
| 97 | def test_force_unlock_empty_cache(self) -> None: |
| 98 | """Force unlock on empty cache should return 0""" |