(self)
| 53 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 54 | |
| 55 | def tearDown(self) -> None: |
| 56 | import shutil |
| 57 | |
| 58 | os.environ.pop("FASTLED_LOCK_DB_PATH", None) |
| 59 | # Clear the DB cache so next test gets a fresh DB |
| 60 | from ci.util.lock_database import _db_cache |
| 61 | |
| 62 | _db_cache.clear() |
| 63 | shutil.rmtree(self.temp_dir, ignore_errors=True) |
| 64 | |
| 65 | def test_nonexistent_lock_not_stale(self) -> None: |
| 66 | """Nonexistent lock should not be considered stale""" |