(self)
| 91 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 92 | |
| 93 | def tearDown(self) -> None: |
| 94 | import shutil |
| 95 | |
| 96 | os.environ.pop("FASTLED_LOCK_DB_PATH", None) |
| 97 | from ci.util.lock_database import _db_cache |
| 98 | |
| 99 | _db_cache.clear() |
| 100 | shutil.rmtree(self.temp_dir, ignore_errors=True) |
| 101 | |
| 102 | def test_break_stale_lock_success(self) -> None: |
| 103 | """Successfully break a stale lock""" |