|
|
@ -8,6 +8,8 @@ import unittest |
|
|
|
|
|
|
|
from patacrep.build import DEFAULT_CONFIG |
|
|
|
from patacrep.songs.chordpro import ChordproSong |
|
|
|
from patacrep.test import disable_logging |
|
|
|
|
|
|
|
|
|
|
|
class ParserTxtRenderer(unittest.TestCase): |
|
|
|
"""Test parser, and renderer as a txt file.""" |
|
|
@ -34,6 +36,7 @@ class ParserTxtRenderer(unittest.TestCase): |
|
|
|
}) |
|
|
|
with open("{}.txt".format(self.basename), 'r', encoding='utf8') as expectfile: |
|
|
|
chordproname = "{}.sgc".format(self.basename) |
|
|
|
with disable_logging(): |
|
|
|
self.assertMultiLineEqual( |
|
|
|
ChordproSong(None, chordproname, config).render( |
|
|
|
output=chordproname, |
|
|
|