From 5f95372086634fee9aac49c7316ac0e21c48775a Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Fri, 11 Nov 2022 11:05:18 +0100 Subject: [PATCH] fix unittest after allowing empty lines in changelog description --- tests/test_extract_version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_extract_version.py b/tests/test_extract_version.py index bedede9..8e83ef5 100644 --- a/tests/test_extract_version.py +++ b/tests/test_extract_version.py @@ -125,7 +125,7 @@ def test_parse_changelog_file(self, ( "changelog_with_date.md", ["## [1.3.0] - 2022-10-26", "## [1.2.3] - 2022-07-31"], - "### Added\n- Something fixed" + "### Added\n- Something fixed\n" ), ( "changelog_with_date_and_time.md", @@ -133,7 +133,7 @@ def test_parse_changelog_file(self, "## [94.0.0] - 2022-10-26 23:59:01", "## [93.10.1] - 2022-07-31 12:34:56" ], - "### Added\n- Something fixed" + "### Added\n- Something fixed\n" ), ) def test_parse_changelog_completely_file(self, @@ -158,7 +158,7 @@ def test_parse_changelog_completely_file(self, self.assertEqual(self.ev.latest_description, expected_description) self.assertTrue(all(isinstance(ele, str) for ele in self.ev.latest_description_lines)) - self.assertEqual(len(self.ev.latest_description_lines), 2) + self.assertEqual(len(self.ev.latest_description_lines), 3) @params( # valid semver release version lines