Skip to content

Commit

Permalink
fix(tests): modify the arg of commit from add to all
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao75896453 authored and Lee-W committed Sep 15, 2023
1 parent 2177a67 commit ea91933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/commands/test_commit_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,6 @@ def test_commit_command_with_all_option(config, mocker: MockFixture):
commit_mock.return_value = cmd.Command("success", "", b"", b"", 0)
success_mock = mocker.patch("commitizen.out.success")
add_mock = mocker.patch("commitizen.git.add")
commands.Commit(config, {"add": True})()
commands.Commit(config, {"all": True})()
add_mock.assert_called()
success_mock.assert_called_once()

0 comments on commit ea91933

Please sign in to comment.