test(installer): cover the remote curl-to-bash install path end to end (#898)

Nice, this locks in the remote install path and keeps the model size check working on Python 3.13.
This commit is contained in:
Sergey Silaev
2026-10-11 23:33:47 -07:00
committed by GitHub
parent f10eb64fa0
commit 05ae041220
+2 -2
View File
@@ -730,8 +730,8 @@ class TestWhispercppInitialization(unittest.TestCase):
return_value=(mock_backend, {}),
):
with patch("os.path.exists", return_value=True):
with patch("os.stat") as mock_stat:
mock_stat.return_value.st_size = 1000000
# Keep file-type checks in shutil.which working on Python 3.13.
with patch("os.path.getsize", return_value=1000000):
# Should convert invalid model to "tiny"
manager = SpeechRecognitionManager(
engine="whisper_cpp", model_size="invalid", defer_download=True