Skip to content

Commit 2d01ff9

Browse files
committed
test(bump_command): remove unnecessary string replacement
1 parent 0aa9362 commit 2d01ff9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/commands/test_bump_command.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,9 @@ def test_bump_when_version_inconsistent_in_version_files(
327327
tmp_version_file = tmp_commitizen_project.join("__version__.py")
328328
tmp_version_file.write("100.999.10000")
329329
tmp_commitizen_cfg_file = tmp_commitizen_project.join("pyproject.toml")
330-
tmp_version_file_string = str(tmp_version_file).replace("\\", "/")
330+
# tmp_version_file_string = str(tmp_version_file).replace("\\", "/")
331331
tmp_commitizen_cfg_file.write(
332-
f"{tmp_commitizen_cfg_file.read()}\n"
333-
f'version_files = ["{tmp_version_file_string}"]'
332+
f"{tmp_commitizen_cfg_file.read()}\n" f'version_files = ["{tmp_version_file}"]'
334333
)
335334

336335
create_file_and_commit("feat: new file")

0 commit comments

Comments
 (0)