From d1185544433ab7e33e17cecb09e3cdf38fedd8e1 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sun, 3 Nov 2019 14:47:51 -0800 Subject: [PATCH 1/2] Update README.md Removed link to ProToolsText --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index 29a8b5f..a425240 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,3 @@ A clip name beginning with "&" will have its parsed clip name appended to the pr cues will be applied (later clips having precedence). The clips need not be touching, and the clips will be combined into a single row of the output. The start time of the first clip will become the start time of the row, and the finish time of the last clip will become the finish time of the row. - -## Other Projects - -This project is under construction. Look at [Pro Tools Text](https://github.com/iluvcapra/ProToolsText) -for a working solution at this time. From 73936510cdf236015589252bf4865ad42362d4a7 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Tue, 12 Nov 2019 17:34:09 -0800 Subject: [PATCH 2/2] Changed appearance of error reports --- ptulsconv/__init__.py | 2 +- tests/test_tagging.py | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ptulsconv/__init__.py b/ptulsconv/__init__.py index 93ddd9f..74937f1 100644 --- a/ptulsconv/__init__.py +++ b/ptulsconv/__init__.py @@ -2,6 +2,6 @@ from .ptuls_grammar import protools_text_export_grammar from .ptuls_parser_visitor import DictionaryParserVisitor from .transformations import TimecodeInterpreter -__version__ = '0.1.0' +__version__ = '0.2.0' __author__ = 'Jamie Hardt' __license__ = 'MIT' \ No newline at end of file diff --git a/tests/test_tagging.py b/tests/test_tagging.py index 02a4376..9fdded1 100644 --- a/tests/test_tagging.py +++ b/tests/test_tagging.py @@ -6,6 +6,31 @@ class TaggingIntegratedTests(unittest.TestCase): path = os.path.dirname(__file__) + '/export_cases/Tag Tests/Tag Tests.txt' + def test_event_list(self): + with open(self.path, 'r') as f: + visitor = ptulsconv.DictionaryParserVisitor() + result = ptulsconv.protools_text_export_grammar.parse(f.read()) + parsed: dict = visitor.visit(result) + + tcxform = ptulsconv.transformations.TimecodeInterpreter() + tagxform = ptulsconv.transformations.TagInterpreter(show_progress=False, + ignore_muted=True, + log_output=False) + + parsed = tcxform.transform(parsed) + parsed = tagxform.transform(parsed) + + self.assertEqual(9, len(parsed['events'])) + self.assertEqual("Clip Name", parsed['events'][0]['PT.Clip.Name']) + self.assertEqual("Lorem ipsum" , parsed['events'][1]['PT.Clip.Name']) + self.assertEqual("Dolor sic amet the rain in spain" , parsed['events'][2]['PT.Clip.Name']) + self.assertEqual("A B C" , parsed['events'][3]['PT.Clip.Name']) + self.assertEqual("Silver Bridge" , parsed['events'][4]['PT.Clip.Name']) + self.assertEqual("Region 02" , parsed['events'][5]['PT.Clip.Name']) + self.assertEqual("Region 12" , parsed['events'][6]['PT.Clip.Name']) + self.assertEqual("Region 22" , parsed['events'][7]['PT.Clip.Name']) + self.assertEqual("Region 04" , parsed['events'][8]['PT.Clip.Name']) + def test_append(self): with open(self.path, 'r') as f: visitor = ptulsconv.DictionaryParserVisitor()