MCPcopy Index your code
hub / github.com/dataease/SQLBot / test_icon_is_png

Method test_icon_is_png

tests/test_supplier_config.py:156–171  ·  view source on GitHub ↗

MiniMax icon should be a valid PNG file.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

openFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected