Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/unit/test_tts_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,10 @@ def test_play_audio_async_creates_daemon_thread(self):

self.manager._play_audio_async(mock_audio, "Speaker")

mock_thread_class.assert_called_once_with(
target=self.manager._play_audio_blocking,
args=(mock_audio, "Speaker")
)
mock_thread_class.assert_called_once()
# Target is now a _safe_play wrapper closure, not _play_audio_blocking directly
target = mock_thread_class.call_args[1].get('target', mock_thread_class.call_args[0][0] if mock_thread_class.call_args[0] else None)
assert callable(target)
assert mock_thread.daemon is True
mock_thread.start.assert_called_once()

Expand Down
Loading