|
@ -9,7 +9,7 @@ import json |
|
|
|
|
|
|
|
|
from patacrep.songs import DataSubpath, DEFAULT_CONFIG |
|
|
from patacrep.songs import DataSubpath, DEFAULT_CONFIG |
|
|
from patacrep import content, files |
|
|
from patacrep import content, files |
|
|
from patacrep.content import song, section, songsection |
|
|
from patacrep.content import song, section, songsection, tex |
|
|
|
|
|
|
|
|
from .. import dynamic # pylint: disable=unused-import |
|
|
from .. import dynamic # pylint: disable=unused-import |
|
|
|
|
|
|
|
@ -83,6 +83,9 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): |
|
|
elif isinstance(elem, songsection.SongSection): |
|
|
elif isinstance(elem, songsection.SongSection): |
|
|
return "{}:{}".format(elem.keyword, elem.name) |
|
|
return "{}:{}".format(elem.keyword, elem.name) |
|
|
|
|
|
|
|
|
|
|
|
elif isinstance(elem, tex.LaTeX): |
|
|
|
|
|
return elem.filename |
|
|
|
|
|
|
|
|
else: |
|
|
else: |
|
|
raise Exception(elem) |
|
|
raise Exception(elem) |
|
|
|
|
|
|
|
|