Skip to content

Commit

Permalink
test(git): different output for tag message on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisHenri committed Dec 30, 2022
1 parent cea9c2e commit 2b3c274
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_git.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import inspect
import os
import platform
import shutil
from typing import List, Optional

Expand Down Expand Up @@ -246,4 +247,6 @@ def test_create_tag_with_message(tmp_commitizen_project):
tag_message = "test message"
create_tag(tag_name, tag_message)
assert git.get_latest_tag_name() == tag_name
assert git.get_tag_message(tag_name) == tag_message
assert git.get_tag_message(tag_name) == (
tag_message if platform.system() != "Windows" else f"'{tag_message}'"
)

0 comments on commit 2b3c274

Please sign in to comment.