Integrated track marker test case and fixed parser

This commit is contained in:
Jamie Hardt
2025-05-17 12:05:27 -07:00
parent 914783a809
commit c3a600c5d7
3 changed files with 11 additions and 7 deletions

View File

@@ -20,5 +20,5 @@ CHANNEL EVENT CLIP NAME START TIME END TIME D
M A R K E R S L I S T I N G
# LOCATION TIME REFERENCE UNITS NAME TRACK NAME TRACK TYPE COMMENTS
1 00:00:00:00 0 Samples $Title=Multiple Marker Rulers Project Markers Ruler
1 00:00:00:00 0 Samples {Title=Multiple Marker Rulers Project} Markers Ruler
2 00:00:04:00 192192 Samples Track Marker Hamlet Track

View File

@@ -2,6 +2,7 @@ import unittest
import tempfile
import sys
import os.path
import os
import glob
@@ -15,14 +16,17 @@ class TestPDFExport(unittest.TestCase):
be converted into PDF docs without throwing an error
"""
files = [os.path.dirname(__file__) + "/../export_cases/Robin Hood Spotting.txt"]
#files.append(os.path.dirname(__file__) + "/../export_cases/Robin Hood Spotting2.txt")
files.append(os.path.dirname(__file__) + "/../export_cases/Test for ptulsconv.txt")
for path in files:
tempdir = tempfile.TemporaryDirectory()
os.chdir(tempdir.name)
try:
commands.convert(input_file=path, major_mode='doc')
except:
assert False, "Error processing file %s" % path
print("Error in test_report_generation")
print(f"File: {path}")
print(repr(sys.exception()))
raise sys.exception()
finally:
tempdir.cleanup()