Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

test: isolate optional clustering dependency

LauraGPT1605ad20a351
diff --git a/tests/test_submodel_device.py b/tests/test_submodel_device.py
index 7fd3e476b..bc235cbc7 100644
--- a/tests/test_submodel_device.py
+++ b/tests/test_submodel_device.py
@@ -55,7 +55,7 @@ class TestSubmodelDevice(unittest.TestCase):
registry = {f"device-test-{role}": RecordingModel for role in ("asr", "vad", "punc", "spk")}
self.start_patch(patch.dict(tables.model_classes, registry))
self.start_patch(patch("torch.cuda.is_available", return_value=True))
- self.start_patch(patch("funasr.auto.auto_model.ClusterBackend"))
+ self.start_patch(patch("funasr.auto.auto_model.ClusterBackend", create=True))
# Reject accidental model-hub access. model_conf={} uses the local registry.
self.start_patch(
patch("funasr.auto.auto_model.download_model", side_effect=AssertionError("network"))