|
@ -9,7 +9,6 @@ import sys |
|
|
import subprocess |
|
|
import subprocess |
|
|
import unittest |
|
|
import unittest |
|
|
|
|
|
|
|
|
from patacrep.encoding import open_read |
|
|
|
|
|
from patacrep.files import path2posix |
|
|
from patacrep.files import path2posix |
|
|
|
|
|
|
|
|
from .. import dynamic # pylint: disable=unused-import |
|
|
from .. import dynamic # pylint: disable=unused-import |
|
@ -64,8 +63,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
raise unittest.SkipTest('No control file for {}'.format(songbook)) |
|
|
raise unittest.SkipTest('No control file for {}'.format(songbook)) |
|
|
|
|
|
|
|
|
tex = "{}.tex".format(base) |
|
|
tex = "{}.tex".format(base) |
|
|
with open_read(control) as expectfile: |
|
|
with open(control, mode="r", encoding="utf8") as expectfile: |
|
|
with open_read(tex) as latexfile: |
|
|
with open(tex, mode="r", encoding="utf8") as latexfile: |
|
|
expected = expectfile.read().strip() |
|
|
expected = expectfile.read().strip() |
|
|
expected = expected.replace( |
|
|
expected = expected.replace( |
|
|
"@TEST_FOLDER@", |
|
|
"@TEST_FOLDER@", |
|
|