diff --git a/test/test_content/test_content.py b/test/test_content/test_content.py index ec164a52..3c8b8b62 100644 --- a/test/test_content/test_content.py +++ b/test/test_content/test_content.py @@ -9,7 +9,7 @@ import json from patacrep.songs import DataSubpath, DEFAULT_CONFIG 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 @@ -83,6 +83,9 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): elif isinstance(elem, songsection.SongSection): return "{}:{}".format(elem.keyword, elem.name) + elif isinstance(elem, tex.LaTeX): + return elem.filename + else: raise Exception(elem) diff --git a/test/test_content/tex.control b/test/test_content/tex.control new file mode 100644 index 00000000..85eeb47e --- /dev/null +++ b/test/test_content/tex.control @@ -0,0 +1 @@ +["test/test_content/datadir/songs/texfile.tex"] \ No newline at end of file diff --git a/test/test_content/tex.source b/test/test_content/tex.source new file mode 100644 index 00000000..56852196 --- /dev/null +++ b/test/test_content/tex.source @@ -0,0 +1 @@ +[["tex", "texfile.tex", "chordpro.csg"]] \ No newline at end of file