(util: UtilFixture, capsys: pytest.CaptureFixture)
| 505 | |
| 506 | @pytest.mark.usefixtures("tmp_commitizen_project") |
| 507 | def 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 | |
| 518 | def test_bump_in_non_git_project(tmp_path, monkeypatch, util: UtilFixture): |
nothing calls this directly
no test coverage detected