Browse Source

Improve songsection test

pull/190/head
Oliverpool 9 years ago
parent
commit
c71297f518
  1. 22
      test/test_content/sections.control
  2. 4
      test/test_content/songsection.control
  3. 2
      test/test_content/test_content.py

22
test/test_content/sections.control

@ -1,11 +1,11 @@
- "section{First Section!}"
- "section{Named section}"
- "section[section_short_name]{Section with short name}"
- "section*{Section* with short name}"
- "part{part section test}"
- "chapter{chapter section test}"
- "section{section section test}"
- "subsection{subsection section test}"
- "subsubsection{subsubsection section test}"
- "paragraph{paragraph section test}"
- "subparagraph{subparagraph section test}"
- section{First Section!}
- section{Named section}
- section[section_short_name]{Section with short name}
- section*{Section* with short name}
- part{part section test}
- chapter{chapter section test}
- section{section section test}
- subsection{subsection section test}
- subsubsection{subsubsection section test}
- paragraph{paragraph section test}
- subparagraph{subparagraph section test}

4
test/test_content/songsection.control

@ -1,6 +1,6 @@
- songsection:Traditional
- songsection{Traditional}
- exsong.sg
- songchapter:English
- songchapter{English}
- texsong.tsg
- chordpro.csg
- exsong.sg

2
test/test_content/test_content.py

@ -81,7 +81,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
return elem.render(None)[1:]
elif isinstance(elem, songsection.SongSection):
return "{}:{}".format(elem.keyword, elem.name)
return elem.render(None)[1:]
elif isinstance(elem, tex.LaTeX):
return files.path2posix(elem.filename)

Loading…
Cancel
Save