Skip to content

Commit 0ab3b19

Browse files
committed
Trying to fix broken timecode test
Signed-off-by: Joshua Minor <[email protected]>
1 parent 0e7c18a commit 0ab3b19

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_opentime.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,12 +418,16 @@ def test_faulty_formatted_timecode_24(self):
418418
with self.assertRaises(ValueError):
419419
otio.opentime.from_timecode('01:00:13;23', 24)
420420

421+
def test_faulty_time_string(self):
422+
with self.assertRaises(ValueError):
423+
otio.opentime.from_time_string("bogus", 24)
424+
421425
def test_invalid_rate_to_timecode_functions(self):
422426
# Use a bogus rate, expecting `to_timecode` to complain
423-
t = otio.opentime.RationalTime(100, 29.7)
427+
t = otio.opentime.RationalTime(100, 999)
424428

425429
with self.assertRaises(ValueError):
426-
otio.opentime.to_timecode(t, 29.7)
430+
otio.opentime.to_timecode(t, 777)
427431

428432
with self.assertRaises(ValueError):
429433
otio.opentime.to_timecode(t)

0 commit comments

Comments
 (0)