Browse Source

Pylint

pull/79/head
Louis 9 years ago
parent
commit
549b546fb2
  1. 8
      patacrep/content/song.py
  2. 6
      patacrep/songs/chordpro/test/test_parser.py

8
patacrep/content/song.py

@ -41,10 +41,10 @@ class SongRenderer(Content):
{song}
""").format(
separator="%"*80,
path=self.song.subpath,
song=self.song.render(output=context['filename'], output_format="latex"),
)
separator="%"*80,
path=self.song.subpath,
song=self.song.render(output=context['filename'], output_format="latex"),
)
#pylint: disable=unused-argument
def parse(keyword, argument, contentlist, config):

6
patacrep/songs/chordpro/test/test_parser.py

@ -21,6 +21,12 @@ class TestParsingRendering(unittest.TestCase):
maxDiff = None
def test_all(self):
"""Test all `*.source` files.
For any given `foo.source`, it is parsed as a chordpro file, and
should be rendered as `foo.sgc` with the chordpro renderer, and
`foo.tex` with the latex renderer.
"""
config = DEFAULT_CONFIG.copy()
config.update({
'encoding': 'utf8',

Loading…
Cancel
Save