Test validation functionality.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected