Fix cargo fmt formatting and diarize threading test mock

This commit is contained in:
Claude
2026-03-20 13:56:32 -07:00
parent 0771508203
commit 42ccd3e21d
9 changed files with 39 additions and 30 deletions

View File

@@ -49,8 +49,9 @@ def test_diarize_threading_progress(monkeypatch):
# Mock pipeline that takes ~5 seconds
def slow_pipeline(file_path, **kwargs):
time.sleep(5)
# Return a mock diarization result
mock_result = MagicMock()
# Return a mock diarization result (use spec=object to prevent
# hasattr returning True for speaker_diarization)
mock_result = MagicMock(spec=[])
mock_track = MagicMock()
mock_track.start = 0.0
mock_track.end = 5.0