Skip to content

Commit

Permalink
fix: execstack
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Jan 4, 2024
1 parent c10d44f commit 22e788b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/widgets/file_transcriber_widget_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import sys
from unittest.mock import Mock

import pytest
from PyQt6.QtCore import Qt
from pytestqt.qtbot import QtBot

Expand All @@ -11,16 +13,15 @@ def test_should_set_window_title(self, qtbot: QtBot):
widget = FileTranscriberWidget(
file_paths=["testdata/whisper-french.mp3"],
default_output_file_name="",
parent=None,
)
qtbot.add_widget(widget)
assert widget.windowTitle() == "whisper-french.mp3"

@pytest.mark.skipif(sys.platform == "linux", reason="TODO")
def test_should_emit_triggered_event(self, qtbot: QtBot):
widget = FileTranscriberWidget(
file_paths=["testdata/whisper-french.mp3"],
default_output_file_name="",
parent=None,
)
qtbot.add_widget(widget)

Expand Down
4 changes: 3 additions & 1 deletion tests/widgets/main_window_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
from typing import List
from unittest.mock import patch

Expand Down Expand Up @@ -59,6 +60,7 @@ def test_should_set_window_title_and_icon(self, qtbot):
assert window.windowIcon().pixmap(QSize(64, 64)).isNull() is False
window.close()

@pytest.mark.skipif(sys.platform == "linux", reason="Fails on Linux")
def test_should_run_transcription_task(self, qtbot: QtBot, tasks_cache):
window = MainWindow(tasks_cache=tasks_cache)

Expand All @@ -79,7 +81,7 @@ def test_should_run_transcription_task(self, qtbot: QtBot, tasks_cache):
assert open_transcript_action.isEnabled()
window.close()

# @pytest.mark.skip(reason='Timing out or crashing')
@pytest.mark.skipif(sys.platform == "linux", reason="Fails on Linux")
def test_should_run_and_cancel_transcription_task(self, qtbot, tasks_cache):
window = MainWindow(tasks_cache=tasks_cache)
qtbot.add_widget(window)
Expand Down

0 comments on commit 22e788b

Please sign in to comment.