Skip to content

Commit 2b3c274

Browse files
committed
test(git): different output for tag message on Windows
1 parent cea9c2e commit 2b3c274

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_git.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import inspect
22
import os
3+
import platform
34
import shutil
45
from typing import List, Optional
56

@@ -246,4 +247,6 @@ def test_create_tag_with_message(tmp_commitizen_project):
246247
tag_message = "test message"
247248
create_tag(tag_name, tag_message)
248249
assert git.get_latest_tag_name() == tag_name
249-
assert git.get_tag_message(tag_name) == tag_message
250+
assert git.get_tag_message(tag_name) == (
251+
tag_message if platform.system() != "Windows" else f"'{tag_message}'"
252+
)

0 commit comments

Comments
 (0)