Skip to content

Commit

Permalink
fix: execstack
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Jan 5, 2024
1 parent 07ac8d8 commit a91ad27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/transcriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,18 @@ def test_transcribe(
)
mock_progress = Mock(side_effect=lambda value: print("progress: ", value))
mock_completed = Mock()
mock_error = Mock()
transcriber.progress.connect(mock_progress)
transcriber.completed.connect(mock_completed)
with qtbot.waitSignal(transcriber.completed, timeout=10 * 60 * 1000):
transcriber.error.connect(mock_error)

with qtbot.waitSignal(
[transcriber.completed, transcriber.error], timeout=10 * 60 * 1000
):
transcriber.run()

mock_error.assert_not_called()

mock_progress.assert_called()
segments = [
segment
Expand Down

0 comments on commit a91ad27

Please sign in to comment.