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

Function test_bump_get_next

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

Source from the content-addressed store, hash-verified

1255
1256@pytest.mark.usefixtures("tmp_commitizen_project")
1257def test_bump_get_next(util: UtilFixture, capsys: pytest.CaptureFixture):
1258 util.create_file_and_commit("feat: new file")
1259
1260 with pytest.raises(DryRunExit):
1261 util.run_cli("bump", "--yes", "--get-next")
1262
1263 out, _ = capsys.readouterr()
1264 assert "0.2.0" in out
1265 assert git.tag_exist("0.2.0") is False
1266
1267
1268@pytest.mark.usefixtures("tmp_commitizen_project")

Callers

nothing calls this directly

Calls 2

run_cliMethod · 0.80

Tested by

no test coverage detected