From 549b546fb2f397392eba88978160a63bf1974ca3 Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 30 Aug 2015 15:31:57 +0200 Subject: [PATCH] Pylint --- patacrep/content/song.py | 8 ++++---- patacrep/songs/chordpro/test/test_parser.py | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/patacrep/content/song.py b/patacrep/content/song.py index 9a1b4635..b44fc7f1 100755 --- a/patacrep/content/song.py +++ b/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): diff --git a/patacrep/songs/chordpro/test/test_parser.py b/patacrep/songs/chordpro/test/test_parser.py index 32216d47..26e5181a 100644 --- a/patacrep/songs/chordpro/test/test_parser.py +++ b/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',