diff --git a/patacrep/songs/chordpro/test/test_parser.py b/patacrep/songs/chordpro/test/test_parser.py index c82338b3..8fdedc22 100644 --- a/patacrep/songs/chordpro/test/test_parser.py +++ b/patacrep/songs/chordpro/test/test_parser.py @@ -35,8 +35,14 @@ class ParserTxtRenderer(unittest.TestCase): with open("{}.txt".format(self.basename), 'r', encoding='utf8') as expectfile: chordproname = "{}.sgc".format(self.basename) self.assertMultiLineEqual( - ChordproSong(None, chordproname, config).render(output=chordproname, output_format="chordpro").strip(), - expectfile.read().strip().replace("DIRNAME", os.path.dirname(self.basename)).strip(), + ChordproSong(None, chordproname, config).render( + output=chordproname, + output_format="chordpro", + ).strip(), + expectfile.read().replace( + "DIRNAME", + os.path.dirname(self.basename), + ).strip(), ) def load_tests(__loader, tests, __pattern):