Skip to content

Commit 0f729c4

Browse files
committed
fix: update the unit test to comply with recent changes
1 parent f91f2ac commit 0f729c4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/commands/test_bump_command.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -853,16 +853,12 @@ def test_bump_manual_version_disallows_major_version_zero(util: UtilFixture):
853853
)
854854
def test_bump_version_with_less_components_in_config(
855855
tmp_commitizen_project_initial,
856-
mocker: MockFixture,
857856
initial_version,
858857
expected_version_after_bump,
858+
util: UtilFixture,
859859
):
860860
tmp_commitizen_project = tmp_commitizen_project_initial(version=initial_version)
861-
862-
testargs = ["cz", "bump", "--yes"]
863-
mocker.patch.object(sys, "argv", testargs)
864-
865-
cli.main()
861+
util.run_cli("bump", "--yes")
866862

867863
tag_exists = git.tag_exist(expected_version_after_bump)
868864
assert tag_exists is True

0 commit comments

Comments
 (0)