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

Method test_validation

ci/tests/test_platformio_ini_class.py:137–146  ·  view source on GitHub ↗

Test validation functionality.

(self)

Source from the content-addressed store, hash-verified

135 self.assertEqual(pio_ini2.get_option("env:uno", "platform"), "atmelavr")
136
137 def test_validation(self) -> None:
138 """Test validation functionality."""
139 # Create an invalid platformio.ini
140 self.test_ini.write_text(INVALID_INI_CONTENT)
141 pio_ini = PlatformIOIni.parseFile(self.test_ini)
142
143 issues = pio_ini.validate_structure()
144 self.assertEqual(len(issues), 2)
145 self.assertIn("missing 'board' option", issues[0])
146 self.assertIn("missing required 'platform' option", issues[1])
147
148 def test_dict_conversion(self) -> None:
149 """Test to_dict and from_dict functionality."""

Callers

nothing calls this directly

Calls 2

parseFileMethod · 0.80
validate_structureMethod · 0.80

Tested by

no test coverage detected