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

Method setUpClass

ci/tests/test_symbol_analysis.py:123–143  ·  view source on GitHub ↗

Set up test fixtures before running tests.

(cls)

Source from the content-addressed store, hash-verified

121 @classmethod
122 @unittest.skipUnless(_ENABLED, "Tests disabled - set _ENABLED = True to run")
123 def setUpClass(cls):
124 """Set up test fixtures before running tests."""
125 if not _ENABLED:
126 return
127 init()
128 # Import Tools dynamically to avoid import errors when disabled
129 from ci.util.tools import Tools, load_tools
130
131 cls.tools: Tools = load_tools(BUILD_INFO_PATH)
132
133 # Load build info for testing
134 with open(BUILD_INFO_PATH) as f:
135 cls.build_info = json.load(f)
136
137 # Get the board key (should be 'uno' for UNO board)
138 cls.board_key = "uno"
139 if cls.board_key not in cls.build_info:
140 # Fallback to first available key
141 cls.board_key = list(cls.build_info.keys())[0]
142
143 cls.board_info = cls.build_info[cls.board_key]
144
145 @unittest.skipUnless(_ENABLED, "Tests disabled - set _ENABLED = True to run")
146 def test_analyze_symbols_basic(self) -> None:

Callers

nothing calls this directly

Calls 5

load_toolsFunction · 0.90
listClass · 0.85
initFunction · 0.70
loadMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected