Skip to content

Commit db42a95

Browse files
committed
test(bump_command): replace \ as / for windows test cases
1 parent 0aa9362 commit db42a95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/commands/test_bump_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,12 @@ def test_bump_when_version_inconsistent_in_version_files(
348348
def test_bump_major_version_zero_when_major_is_not_zero(mocker, tmp_commitizen_project):
349349
tmp_version_file = tmp_commitizen_project.join("__version__.py")
350350
tmp_version_file.write("1.0.0")
351+
tmp_version_file_string = str(tmp_version_file).replace("\\", "/")
351352
tmp_commitizen_cfg_file = tmp_commitizen_project.join("pyproject.toml")
352353
tmp_commitizen_cfg_file.write(
353354
f"[tool.commitizen]\n"
354355
'version="1.0.0"\n'
355-
f'version_files = ["{str(tmp_version_file)}"]'
356+
f'version_files = ["{str(tmp_version_file_string)}"]'
356357
)
357358
tmp_changelog_file = tmp_commitizen_project.join("CHANGELOG.md")
358359
tmp_changelog_file.write("## v1.0.0")

0 commit comments

Comments
 (0)