MCPcopy Create free account
hub / github.com/FastLED/FastLED / tearDown

Method tearDown

ci/tests/test_file_lock_rw.py:55–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected