From dead3820a9b98becaf884bbff803885ab2818d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Henrique=20Allebrandt=20Sch=C3=BCnemann?= Date: Thu, 29 Dec 2022 22:05:08 -0300 Subject: [PATCH] test(git): different output for tag message on Windows --- tests/test_git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_git.py b/tests/test_git.py index abee634fd7..4ae11a45dd 100644 --- a/tests/test_git.py +++ b/tests/test_git.py @@ -2,6 +2,7 @@ import inspect import os +import platform import shutil import pytest @@ -248,4 +249,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}'" + )