We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9971a32 commit d563504Copy full SHA for d563504
tests/commands/test_bump_command.py
@@ -1480,6 +1480,24 @@ def test_bump_get_next(mocker: MockFixture, capsys):
1480
tag_exists = git.tag_exist("0.2.0")
1481
assert tag_exists is False
1482
1483
+@pytest.mark.usefixtures("tmp_commitizen_project")
1484
+def test_bump_get_next_update_changelog_on_bump(mocker: MockFixture, capsys, config_path):
1485
+ create_file_and_commit("feat: new file")
1486
+ with open(config_path, "a", encoding="utf-8") as fp:
1487
+ fp.write("update_changelog_on_bump = true\n")
1488
+
1489
+ testargs = ["cz", "bump", "--yes", "--get-next"]
1490
+ mocker.patch.object(sys, "argv", testargs)
1491
+ with pytest.raises(GetNextExit):
1492
+ cli.main()
1493
1494
+ out, _ = capsys.readouterr()
1495
+ assert "0.2.0" in out
1496
1497
+ tag_exists = git.tag_exist("0.2.0")
1498
+ assert tag_exists is False
1499
1500
1501
1502
@pytest.mark.usefixtures("tmp_commitizen_project")
1503
def test_bump_get_next__changelog_is_not_allowed(mocker: MockFixture):
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments