Skip to content

Commit

Permalink
Merge pull request #127 from lotka/fix-tests-03-2024
Browse files Browse the repository at this point in the history
Fix tests #125
  • Loading branch information
abdeladim-s committed Mar 29, 2024
2 parents dc391a7 + 9732871 commit eb3797e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_transcribe(self):
for model in self.subs_ai.available_models():
model_instance = self.subs_ai.create_model(model)
for file in self.files:
subs = model_instance.transcribe(file, model_instance)
subs = model_instance.transcribe(file)
self.assertIsInstance(subs, SSAFile, 'transcribe function should return `pysubs2.SSAFile`')


Expand All @@ -67,6 +67,6 @@ def test_auto_sync(self):


def test_merge_subs_with_video(self):
Tools.merge_subs_with_video2({'English': self.subs}, self.file, 'subs-merged')
Tools.merge_subs_with_video({'English': self.subs}, self.file, 'subs-merged')
in_file = pathlib.Path(self.file)
self.assertTrue((in_file.parent / f"subs-merged{in_file.suffix}").exists())

0 comments on commit eb3797e

Please sign in to comment.