mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Fixed an error in the tag compiler test
This commit is contained in:
@@ -8,21 +8,21 @@ import glob
|
||||
|
||||
from ptulsconv import commands
|
||||
|
||||
# class TestBroadcastTimecode(unittest.TestCase):
|
||||
# def test_report_generation(self):
|
||||
# """
|
||||
# Setp through every text file in export_cases and make sure it can
|
||||
# be converted into PDF docs without throwing an error
|
||||
# """
|
||||
# for path in glob.glob(os.path.dirname(__file__) + "/../export_cases/*.txt"):
|
||||
# tempdir = tempfile.TemporaryDirectory()
|
||||
# os.chdir(tempdir.name)
|
||||
# try:
|
||||
# commands.convert(path, major_mode='doc')
|
||||
# except:
|
||||
# assert False, "Error processing file %s" % path
|
||||
# finally:
|
||||
# tempdir.cleanup()
|
||||
class TestBroadcastTimecode(unittest.TestCase):
|
||||
def test_report_generation(self):
|
||||
"""
|
||||
Setp through every text file in export_cases and make sure it can
|
||||
be converted into PDF docs without throwing an error
|
||||
"""
|
||||
# for path in glob.glob(os.path.dirname(__file__) + "/../export_cases/*.txt"):
|
||||
# tempdir = tempfile.TemporaryDirectory()
|
||||
# os.chdir(tempdir.name)
|
||||
# try:
|
||||
# commands.convert(path, major_mode='doc')
|
||||
# except:
|
||||
# assert False, "Error processing file %s" % path
|
||||
# finally:
|
||||
# tempdir.cleanup()
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -97,14 +97,14 @@ class TestTagCompiler(unittest.TestCase):
|
||||
|
||||
markers = [doc_entity.MarkerDescriptor(number=1,
|
||||
location="01:00:00:00",
|
||||
time_reference=48000 * 60,
|
||||
time_reference=48000 * 3600,
|
||||
units="Samples",
|
||||
name="Marker 1 {Part=1}",
|
||||
comments=""
|
||||
),
|
||||
doc_entity.MarkerDescriptor(number=2,
|
||||
location="01:00:01:00",
|
||||
time_reference=48000 * 61,
|
||||
time_reference=48000 * 3601,
|
||||
units="Samples",
|
||||
name="Marker 2 {Part=2}",
|
||||
comments="[M1]"
|
||||
|
||||
Reference in New Issue
Block a user