Skip to content

Commit 113ed5c

Browse files
committed
test(test_changelog): fix test
1 parent 614aae3 commit 113ed5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_changelog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,9 @@ def test_tags_rules_get_version_tags(capsys: pytest.CaptureFixture):
16411641

16421642
def test_changelog_file_name_from_args_and_config():
16431643
mock_config = Mock(spec=BaseConfig)
1644-
mock_config.path.parent = "/my/project"
1644+
mock_path = Mock(spec=Path)
1645+
mock_path.parent = Path("/my/project")
1646+
mock_config.path = mock_path
16451647
mock_config.settings = {
16461648
"name": "cz_conventional_commits",
16471649
"changelog_file": "CHANGELOG.md",

0 commit comments

Comments
 (0)