Skip to content

Commit 2db6453

Browse files
committed
test(changelog): add forgotten f in f-strings
1 parent bc1542c commit 2db6453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_changelog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ def test_render_changelog_with_changelog_message_builder_hook_multiple_entries(
14461446
def changelog_message_builder_hook(message: dict, commit: git.GitCommit):
14471447
messages = [message.copy(), message.copy(), message.copy()]
14481448
for idx, msg in enumerate(messages):
1449-
msg["message"] = "Message #{idx}"
1449+
msg["message"] = f"Message #{idx}"
14501450
return messages
14511451

14521452
parser = ConventionalCommitsCz.commit_parser
@@ -1463,7 +1463,7 @@ def changelog_message_builder_hook(message: dict, commit: git.GitCommit):
14631463
result = changelog.render_changelog(tree, loader, template)
14641464

14651465
for idx in range(3):
1466-
assert "Message #{idx}" in result
1466+
assert f"Message #{idx}" in result
14671467

14681468

14691469
def test_changelog_message_builder_hook_can_access_and_modify_change_type(

0 commit comments

Comments
 (0)