Skip to content

Commit 573ffda

Browse files
test: add deprecated test back (#1852)
1 parent c130da3 commit 573ffda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/commands/test_bump_command.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,16 @@ def test_changelog_config_flag_merge_prerelease_only_prerelease_present(
14941494
file_regression.check(out, extension=".md")
14951495

14961496

1497+
@pytest.mark.usefixtures("tmp_commitizen_project")
1498+
def test_bump_deprecate_files_only(util: UtilFixture):
1499+
util.create_file_and_commit("feat: new file")
1500+
with (
1501+
pytest.warns(DeprecationWarning, match=r".*--files-only.*deprecated"),
1502+
pytest.raises(ExpectedExit),
1503+
):
1504+
util.run_cli("bump", "--yes", "--files-only")
1505+
1506+
14971507
@pytest.mark.parametrize(
14981508
("prerelease", "merge"),
14991509
[

0 commit comments

Comments
 (0)