(self)
| 133 | os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path) |
| 134 | |
| 135 | def tearDown(self) -> None: |
| 136 | import shutil |
| 137 | |
| 138 | os.environ.pop("FASTLED_LOCK_DB_PATH", None) |
| 139 | from ci.util.lock_database import _db_cache |
| 140 | |
| 141 | _db_cache.clear() |
| 142 | shutil.rmtree(self.temp_dir, ignore_errors=True) |
| 143 | |
| 144 | def test_lock_acquire_release(self) -> None: |
| 145 | """Lock should be acquired and released""" |