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

Method setUp

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

Source from the content-addressed store, hash-verified

240 """Test artifact locked status check"""
241
242 def setUp(self) -> None:
243 self.temp_dir = tempfile.mkdtemp()
244 self.cache_dir = Path(self.temp_dir) / "cache"
245 self.cache_dir.mkdir()
246 self.db_path = Path(self.temp_dir) / "test_locks.db"
247 self.db = LockDatabase(self.db_path)
248 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
249
250 def tearDown(self) -> None:
251 import shutil

Callers

nothing calls this directly

Calls 1

LockDatabaseClass · 0.90

Tested by

no test coverage detected