MCPcopy Create free account
hub / github.com/aarnphm/whispercpp / test_init_state_runtime_error

Function test_init_state_runtime_error

tests/context_export_test.py:31–36  ·  view source on GitHub ↗
(
    params: w.api.Params, audio_file: NDArray[np.float32]
)

Source from the content-addressed store, hash-verified

29
30
31def test_init_state_runtime_error(
32 params: w.api.Params, audio_file: NDArray[np.float32]
33):
34 context = w.api.Context.from_file(w.utils.download_model("tiny.en"), True)
35 with pytest.raises(RuntimeError):
36 context.full(params, audio_file)
37
38
39def test_full_with_init_state_manually(

Callers

nothing calls this directly

Calls 2

from_fileMethod · 0.80
fullMethod · 0.80

Tested by

no test coverage detected