|
@ -38,9 +38,6 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
'*.sb', |
|
|
'*.sb', |
|
|
))): |
|
|
))): |
|
|
base = songbook[:-len(".sb")] |
|
|
base = songbook[:-len(".sb")] |
|
|
control = "{}.tex.control".format(base) |
|
|
|
|
|
if not os.path.exists(control): |
|
|
|
|
|
continue |
|
|
|
|
|
yield ( |
|
|
yield ( |
|
|
"test_generation_{}".format(os.path.basename(base)), |
|
|
"test_generation_{}".format(os.path.basename(base)), |
|
|
cls._create_generation_test(base), |
|
|
cls._create_generation_test(base), |
|
@ -63,6 +60,9 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
|
|
|
|
|
|
# Check generated tex |
|
|
# Check generated tex |
|
|
control = "{}.tex.control".format(base) |
|
|
control = "{}.tex.control".format(base) |
|
|
|
|
|
if not os.path.exists(control): |
|
|
|
|
|
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_read(control) as expectfile: |
|
|
with open_read(tex) as latexfile: |
|
|
with open_read(tex) as latexfile: |
|
|