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

Method tearDown

ci/tests/test_cache_lock.py:138–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
137
138 def tearDown(self) -> None:
139 import shutil
140
141 os.environ.pop("FASTLED_LOCK_DB_PATH", None)
142 from ci.util.lock_database import _db_cache
143
144 _db_cache.clear()
145 shutil.rmtree(self.temp_dir, ignore_errors=True)
146
147 def test_cleanup_empty_cache(self) -> None:
148 """Cleanup on empty cache should return 0"""

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected