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

Method setUp

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

Source from the content-addressed store, hash-verified

128 """Test stale lock cleanup"""
129
130 def setUp(self) -> None:
131 self.temp_dir = tempfile.mkdtemp()
132 self.cache_dir = Path(self.temp_dir) / "cache"
133 self.cache_dir.mkdir()
134 self.db_path = Path(self.temp_dir) / "test_locks.db"
135 self.db = LockDatabase(self.db_path)
136 os.environ["FASTLED_LOCK_DB_PATH"] = str(self.db_path)
137
138 def tearDown(self) -> None:
139 import shutil

Callers

nothing calls this directly

Calls 1

LockDatabaseClass · 0.90

Tested by

no test coverage detected