From 6d44f0935da9ecb60e50dfa2a530e6b6f3d550c9 Mon Sep 17 00:00:00 2001 From: Joshua Minor Date: Wed, 13 Nov 2024 23:53:39 -0800 Subject: [PATCH] Trying to fix broken timecode test Signed-off-by: Joshua Minor --- tests/test_opentime.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_opentime.py b/tests/test_opentime.py index 1718f3d93..74143e29f 100755 --- a/tests/test_opentime.py +++ b/tests/test_opentime.py @@ -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)