MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_bump_dry_run

Function test_bump_dry_run

tests/commands/test_bump_command.py:507–515  ·  view source on GitHub ↗
(util: UtilFixture, capsys: pytest.CaptureFixture)

Source from the content-addressed store, hash-verified

505
506@pytest.mark.usefixtures("tmp_commitizen_project")
507def test_bump_dry_run(util: UtilFixture, capsys: pytest.CaptureFixture):
508 util.create_file_and_commit("feat: new file")
509
510 with pytest.raises(DryRunExit):
511 util.run_cli("bump", "--yes", "--dry-run")
512
513 out, _ = capsys.readouterr()
514 assert "0.2.0" in out
515 assert git.tag_exist("0.2.0") is False
516
517
518def test_bump_in_non_git_project(tmp_path, monkeypatch, util: UtilFixture):

Callers

nothing calls this directly

Calls 2

run_cliMethod · 0.80

Tested by

no test coverage detected