Set up test fixtures before running tests.
(cls)
| 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: |
nothing calls this directly
no test coverage detected