github.com/tiagovtristao/plz@v13.4.0+incompatible/tools/misc/gen_release_test.py (about) 1 import unittest 2 from textwrap import dedent 3 4 from .gen_release import ReleaseGen 5 6 7 class GenReleaseTest(unittest.TestCase): 8 9 def test_get_release_notes(self): 10 """Tests that the changelog notes come out in a sensible way.""" 11 r = ReleaseGen('') 12 r.version = '13.2.7' 13 r.version_name = 'Version 13.2.7' 14 expected = dedent(""" 15 This is Please v13.2.7 16 17 * Disallowed adding empty outputs to a target (this never made sense and 18 would only break things). 19 * Langserver now supports autoformatting and completion for local files 20 and argument names. 21 * Fixed an issue with incorrect permissions when a rule marked as binary 22 had a directory as an output (#478). 23 24 """).lstrip() 25 self.assertEqual(expected, '\n'.join(r.get_release_notes()))