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 4d6034e commit b6147f0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/widgets/transcription_task_folder_watcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from pytestqt.qtbot import QtBot

from buzz.model_loader import TranscriptionModel
from buzz.model_loader import TranscriptionModel, ModelType
from buzz.transcriber import (
Task,
DEFAULT_WHISPER_TEMPERATURE,
Expand All @@ -24,6 +24,12 @@


class TestTranscriptionTaskFolderWatcher:
def default_model(self):
model_type = next(
model_type for model_type in ModelType if model_type.is_available()
)
return TranscriptionModel(model_type=model_type)

def test_should_add_task_not_in_tasks(self, qtbot: QtBot):
input_directory = mkdtemp()
watcher = TranscriptionTaskFolderWatcher(
Expand All @@ -35,7 +41,7 @@ def test_should_add_task_not_in_tasks(self, qtbot: QtBot):
file_transcription_options=FileTranscriptionPreferences(
language=None,
task=Task.TRANSCRIBE,
model=TranscriptionModel(),
model=self.default_model(),
word_level_timings=False,
temperature=DEFAULT_WHISPER_TEMPERATURE,
initial_prompt="",
Expand Down

0 comments on commit b6147f0

Please sign in to comment.