Skip to content

Commit

Permalink
Trying to fix broken timecode test
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Minor <[email protected]>
  • Loading branch information
jminor committed Nov 14, 2024
1 parent c9c0c29 commit 6d44f09
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_opentime.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,16 @@ def test_faulty_formatted_timecode_24(self):
with self.assertRaises(ValueError):
otio.opentime.from_timecode('01:00:13;23', 24)

def test_faulty_time_string(self):
with self.assertRaises(ValueError):
otio.opentime.from_time_string("bogus", 24)

def test_invalid_rate_to_timecode_functions(self):
# Use a bogus rate, expecting `to_timecode` to complain
t = otio.opentime.RationalTime(100, 29.7)
t = otio.opentime.RationalTime(100, 999)

with self.assertRaises(ValueError):
otio.opentime.to_timecode(t, 29.7)
otio.opentime.to_timecode(t, 777)

with self.assertRaises(ValueError):
otio.opentime.to_timecode(t)
Expand Down

0 comments on commit 6d44f09

Please sign in to comment.