@@ -418,7 +418,8 @@ def test_bump_files_only(tmp_commitizen_project, util: UtilFixture):
418418
419419 util .create_file_and_commit ("feat: another new feature" )
420420 with pytest .raises (ExpectedExit ):
421- util .run_cli ("bump" , "--yes" , "--files-only" )
421+ util .run_cli ("bump" , "--yes" , "--version-files-only" )
422+
422423 assert git .tag_exist ("0.3.0" ) is False
423424
424425 with open (tmp_version_file , encoding = "utf-8" ) as f :
@@ -1204,7 +1205,7 @@ def test_bump_changelog_contains_increment_only(
12041205 # it should only include v3 changes
12051206 util .create_file_and_commit ("feat(next)!: next version" )
12061207 with pytest .raises (ExpectedExit ):
1207- util .run_cli ("bump" , "--yes" , "--files-only" , "--changelog-to-stdout" )
1208+ util .run_cli ("bump" , "--yes" , "--version- files-only" , "--changelog-to-stdout" )
12081209 out , _ = capsys .readouterr ()
12091210
12101211 assert "3.0.0" in out
@@ -1492,3 +1493,13 @@ def test_changelog_config_flag_merge_prerelease_only_prerelease_present(
14921493 out = f .read ()
14931494
14941495 file_regression .check (out , extension = ".md" )
1496+
1497+
1498+ @pytest .mark .usefixtures ("tmp_commitizen_project" )
1499+ def test_bump_deprecate_files_only (util : UtilFixture ):
1500+ util .create_file_and_commit ("feat: new file" )
1501+ with (
1502+ pytest .warns (DeprecationWarning , match = r".*--files-only.*deprecated" ),
1503+ pytest .raises (ExpectedExit ),
1504+ ):
1505+ util .run_cli ("bump" , "--yes" , "--files-only" )
0 commit comments