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

Method setUpClass

ci/tests/test_bin_2_elf.py:28–44  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

26class TestBinToElf(unittest.TestCase):
27 @classmethod
28 def setUpClass(cls):
29 if DISABLED:
30 return
31 uno_build = PROJECT_ROOT / ".build" / "uno"
32 print(f"Checking for Uno build in: {uno_build}")
33 if not uno_build.exists():
34 print("Uno build not found. Running compilation...")
35 try:
36 subprocess.run(
37 "uv run python -m ci.ci-compile uno --examples Blink",
38 shell=True,
39 check=True,
40 )
41 print("Compilation completed successfully.")
42 except subprocess.CalledProcessError as e:
43 print(f"Error during compilation: {e}")
44 raise
45
46 @unittest.skip("Skip bin to elf conversion test")
47 def test_bin_to_elf_conversion(self) -> None:

Callers

nothing calls this directly

Calls 2

printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected