Skip to content

Commit 12e8d0b

Browse files
test(test_changelog_format): test get_latest_full_release with filepath not present
1 parent 73aa8a3 commit 12e8d0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_changelog_format_asciidoc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66

7-
from commitizen.changelog import Metadata
7+
from commitizen.changelog import IncrementalMergeInfo, Metadata
88
from commitizen.changelog_formats.asciidoc import AsciiDoc
99
from commitizen.config.base_config import BaseConfig
1010

@@ -169,6 +169,10 @@ def test_get_metadata(
169169
assert format.get_metadata(str(changelog)) == expected
170170

171171

172+
def test_get_latest_full_release_no_file(format: AsciiDoc):
173+
assert format.get_latest_full_release("/nonexistent") == IncrementalMergeInfo()
174+
175+
172176
@pytest.mark.parametrize(
173177
"format_with_tags, tag_string, expected, ",
174178
(

0 commit comments

Comments
 (0)