@@ -470,7 +470,7 @@ def test_bump_files_only(tmp_commitizen_project, util: UtilFixture):
470470
471471 util .create_file_and_commit ("feat: another new feature" )
472472 with pytest .raises (ExpectedExit ):
473- util .run_cli ("bump" , "--yes" , "--files-only" )
473+ util .run_cli ("bump" , "--yes" , "--version- files-only" )
474474
475475 tag_exists = git .tag_exist ("0.3.0" )
476476 assert tag_exists is False
@@ -1267,7 +1267,7 @@ def test_bump_changelog_contains_increment_only(
12671267 # it should only include v3 changes
12681268 util .create_file_and_commit ("feat(next)!: next version" )
12691269 with pytest .raises (ExpectedExit ):
1270- util .run_cli ("bump" , "--yes" , "--files-only" , "--changelog-to-stdout" )
1270+ util .run_cli ("bump" , "--yes" , "--version- files-only" , "--changelog-to-stdout" )
12711271 out , _ = capsys .readouterr ()
12721272
12731273 assert "3.0.0" in out
@@ -1557,3 +1557,11 @@ def test_changelog_config_flag_merge_prerelease_only_prerelease_present(
15571557 out = f .read ()
15581558
15591559 file_regression .check (out , extension = ".md" )
1560+
1561+
1562+ @pytest .mark .usefixtures ("tmp_commitizen_project" )
1563+ def test_bump_deprecate_files_only (util : UtilFixture ):
1564+ util .create_file_and_commit ("feat: new file" )
1565+ with pytest .warns (DeprecationWarning ):
1566+ with pytest .raises (ExpectedExit ):
1567+ util .run_cli ("bump" , "--yes" , "--files-only" )
0 commit comments