mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Fixed some unit tests
This commit is contained in:
@@ -66,7 +66,8 @@ class TestBroadcastTimecode(unittest.TestCase):
|
||||
def test_seconds_to_smpte(self):
|
||||
secs = Fraction(25, 24)
|
||||
frame_duration = Fraction(1, 24)
|
||||
s1 = broadcast_timecode.seconds_to_smpte(secs, frame_duration, 24, False)
|
||||
tc_format = broadcast_timecode.TimecodeFormat(frame_duration=frame_duration, logical_fps=24, drop_frame=False)
|
||||
s1 = tc_format.seconds_to_smpte(secs)
|
||||
self.assertEqual(s1, "00:00:01:01")
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class TestRobinHood1(unittest.TestCase):
|
||||
self.assertEqual(session.header.session_name, 'Robin Hood Spotting')
|
||||
self.assertEqual(session.header.sample_rate, 48000.0)
|
||||
self.assertEqual(session.header.bit_depth, 24)
|
||||
self.assertEqual(session.header.timecode_format, '29.97')
|
||||
self.assertEqual(session.header.timecode_fps, '29.97')
|
||||
self.assertEqual(session.header.timecode_drop_frame, False)
|
||||
|
||||
def test_all_sections(self):
|
||||
|
||||
Reference in New Issue
Block a user