Files
ptulsconv/tests/unittests/test_doc_entities.py
T
Jamie Hardt e0e3024280 Bug ruff 2026 (#19)
* Updated Ruff to v0.16 and fixed for default checks 

* Nudge version and removed license classifier

---------

Co-authored-by: Jamie Hardt <jamie@squad51.us>
2026-09-19 16:35:56 -07:00

27 lines
720 B
Python

import unittest
from fractions import Fraction
from ptulsconv.docparser.doc_entity import HeaderDescriptor
class DocParserTestCase(unittest.TestCase):
def test_header(self):
header = HeaderDescriptor(
session_name="Test Session",
sample_rate=48000.0,
bit_depth=24,
start_timecode="00:59:52:00",
timecode_format="30",
timecode_drop_frame=False,
count_audio_tracks=0,
count_clips=0,
count_files=0,
)
self.assertEqual(header.session_name, "Test Session")
self.assertEqual(header.start_time, Fraction((59 * 60 + 52) * 30, 30))
if __name__ == "__main__":
unittest.main()