@@ -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 :
@@ -1175,7 +1176,7 @@ def test_bump_changelog_contains_increment_only(
11751176 # it should only include v3 changes
11761177 util .create_file_and_commit ("feat(next)!: next version" )
11771178 with pytest .raises (ExpectedExit ):
1178- util .run_cli ("bump" , "--yes" , "--files-only" , "--changelog-to-stdout" )
1179+ util .run_cli ("bump" , "--yes" , "--version- files-only" , "--changelog-to-stdout" )
11791180 out , _ = capsys .readouterr ()
11801181
11811182 assert "3.0.0" in out
@@ -1463,3 +1464,11 @@ def test_changelog_config_flag_merge_prerelease_only_prerelease_present(
14631464 out = f .read ()
14641465
14651466 file_regression .check (out , extension = ".md" )
1467+
1468+
1469+ @pytest .mark .usefixtures ("tmp_commitizen_project" )
1470+ def test_bump_deprecate_files_only (util : UtilFixture ):
1471+ util .create_file_and_commit ("feat: new file" )
1472+ with pytest .warns (DeprecationWarning ):
1473+ with pytest .raises (ExpectedExit ):
1474+ util .run_cli ("bump" , "--yes" , "--files-only" )
0 commit comments