Skip to content

Commit 3fe4204

Browse files
committed
fix(WebServer): mock shutil.which in test_invalid_base64 for CI without icu
1 parent 7e10586 commit 3fe4204

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tools/WebServer/tests/test_file_routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def test_empty_data(self):
322322
data = res.get_json()
323323
self.assertFalse(data["success"])
324324

325-
def test_invalid_base64(self):
325+
@patch("shutil.which", return_value="/usr/bin/icu")
326+
def test_invalid_base64(self, mock_which):
326327
res = self.client.post(
327328
"/api/convert/lvgl-to-png", json={"data": "!!!invalid!!!"}
328329
)

0 commit comments

Comments
 (0)