MiniMax icon should be a valid PNG file.
(self)
| 154 | self.assertTrue(os.path.exists(icon_path), "MiniMax icon file should exist") |
| 155 | |
| 156 | def test_icon_is_png(self): |
| 157 | """MiniMax icon should be a valid PNG file.""" |
| 158 | icon_path = os.path.join( |
| 159 | PROJECT_ROOT, |
| 160 | "frontend", |
| 161 | "src", |
| 162 | "assets", |
| 163 | "model", |
| 164 | "icon_minimax_colorful.png", |
| 165 | ) |
| 166 | with open(icon_path, "rb") as f: |
| 167 | header = f.read(8) |
| 168 | # PNG magic number |
| 169 | self.assertEqual( |
| 170 | header[:4], b"\x89PNG", "File should have PNG magic number" |
| 171 | ) |
| 172 | |
| 173 | def test_icon_not_empty(self): |
| 174 | """MiniMax icon file should not be empty.""" |