@@ -367,7 +367,7 @@ def test_changes_to_files_are_committed(git_repo: Path, caplog):
367
367
"""
368
368
[tool.bumpversion]
369
369
current_version = "0.1.26"
370
- allow_dirty = true
370
+ tag_name = "{new_version}"
371
371
commit = true
372
372
373
373
[[tool.bumpversion.files]]
@@ -394,6 +394,7 @@ def test_changes_to_files_are_committed(git_repo: Path, caplog):
394
394
with inside_dir (git_repo ):
395
395
run_command (["git" , "add" , str (chart1_path ), str (chart2_path ), str (config_path )])
396
396
run_command (["git" , "commit" , "-m" , "Initial commit" ])
397
+ run_command (["git" , "tag" , "0.1.26" ])
397
398
398
399
# Act
399
400
from click .testing import CliRunner , Result
@@ -420,7 +421,7 @@ def test_changes_to_files_are_committed(git_repo: Path, caplog):
420
421
"""
421
422
[tool.bumpversion]
422
423
current_version = "0.2.0"
423
- allow_dirty = true
424
+ tag_name = "{new_version}"
424
425
commit = true
425
426
426
427
[[tool.bumpversion.files]]
@@ -442,3 +443,6 @@ def test_changes_to_files_are_committed(git_repo: Path, caplog):
442
443
443
444
"""
444
445
)
446
+ with inside_dir (git_repo ):
447
+ status = run_command (["git" , "status" , "--porcelain" ])
448
+ assert status .stdout == ""
0 commit comments