Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavinov-actionengine authored and kbairak committed Jul 2, 2024
1 parent 09d79ce commit 842846b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions openformats/tests/formats/vtt/test_vtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,15 @@ def test_vtt_occurrences(self):
_, stringset = self.handler.parse(source)
self.assertEqual(stringset[0].occurrences, '00:01:28.797,00:01:30.297')

def test_missing_string(self):
def test_empty_subtitle(self):
source = strip_leading_spaces("""WEBVTT
1
00:01:28.797 --> 00:01:30.297
""")
self._test_parse_error(
source,
"Subtitle is empty on line 5"
)
template, stringset = self.handler.parse(source)
self.assertIn('WEBVTT', template)
self.assertEqual(len(stringset), 1)

def test_full_and_short_timings(self):
source = strip_leading_spaces("""WEBVTT
Expand Down

0 comments on commit 842846b

Please sign in to comment.