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 Jul 25, 2023
1 parent 0de037a commit dead382
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
Expand Up @@ -2,6 +2,7 @@

import inspect
import os
import platform
import shutil

import pytest
Expand Down Expand Up @@ -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}'"
)

0 comments on commit dead382

Please sign in to comment.