Skip to content

Commit 6493ff3

Browse files
author
Alexandre Marcé
committed
test(allow_empty): Added parameters for asserting the command arguments
1 parent a4c9a1e commit 6493ff3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/commands/test_commit_command.py

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def test_commit_allow_empty(config, mocker):
6969
success_mock = mocker.patch("commitizen.out.success")
7070

7171
commands.Commit(config, {"allow_empty": True})()
72+
73+
commit_mock.assert_called_with('feat: user created\n\ncloses #21', "--allow-empty")
7274
success_mock.assert_called_once()
7375

7476

0 commit comments

Comments
 (0)