Refactored symbol

This commit is contained in:
Jamie Hardt
2022-11-20 13:31:10 -08:00
parent 7ec983f63f
commit 065bd26f4c
4 changed files with 79 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
import unittest
from ptulsconv.docparser import doc_entity, pt_doc_parser, ptuls_grammar, tag_compiler
from ptulsconv.docparser import doc_entity, pt_doc_parser, tag_compiler
import os.path
@@ -8,7 +8,7 @@ class TaggingIntegratedTests(unittest.TestCase):
def test_event_list(self):
with open(self.path, 'r') as f:
document_ast = ptuls_grammar.protools_text_export_grammar.parse(f.read())
document_ast = pt_doc_parser.protools_text_export_grammar.parse(f.read())
document: doc_entity.SessionDescriptor = pt_doc_parser.DocParserVisitor().visit(document_ast)
compiler = tag_compiler.TagCompiler()
compiler.session = document
@@ -28,7 +28,7 @@ class TaggingIntegratedTests(unittest.TestCase):
def test_append(self):
with open(self.path, 'r') as f:
document_ast = ptuls_grammar.protools_text_export_grammar.parse(f.read())
document_ast = pt_doc_parser.protools_text_export_grammar.parse(f.read())
document: doc_entity.SessionDescriptor = pt_doc_parser.DocParserVisitor().visit(document_ast)
compiler = tag_compiler.TagCompiler()
compiler.session = document
@@ -51,7 +51,7 @@ class TaggingIntegratedTests(unittest.TestCase):
def test_successive_appends(self):
with open(self.path, 'r') as f:
document_ast = ptuls_grammar.protools_text_export_grammar.parse(f.read())
document_ast = pt_doc_parser.protools_text_export_grammar.parse(f.read())
document: doc_entity.SessionDescriptor = pt_doc_parser.DocParserVisitor().visit(document_ast)
compiler = tag_compiler.TagCompiler()
compiler.session = document