mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Refactored symbol
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user