Skip to content

Commit 09fa312

Browse files
committed
test(commands/commit): set staging_is_clean to pre_commit_msg_hook
for pass the python-check (3.8)
1 parent 033159d commit 09fa312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/commands/test_commit_command.py

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def test_commit_in_non_git_project(tmpdir, config):
161161
commands.Commit(config, {})
162162

163163

164+
@pytest.mark.usefixtures("staging_is_clean")
164165
def test_commit_from_pre_commit_msg_hook(config, mocker, capsys):
165166
testargs = ["cz", "commit", "--commit-msg-file", "some_file"]
166167
mocker.patch.object(sys, "argv", testargs)

0 commit comments

Comments
 (0)