Skip to content

Commit

Permalink
fix unittest after allowing empty lines in changelog description
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Nov 11, 2022
1 parent ee2dde5 commit 5f95372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_extract_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ 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",
[
"## [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,
Expand All @@ -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
Expand Down

0 comments on commit 5f95372

Please sign in to comment.