Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavinov-actionengine committed Jul 8, 2024
1 parent 4a209fd commit efc48b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openformats/tests/formats/vtt/test_vtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ 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
""")
template, _ = self.handler.parse(source)
self.assertEqual(source, template)
self._test_parse_error(source, "There are no strings to translate")

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

0 comments on commit efc48b2

Please sign in to comment.