Skip to content

Commit aa35216

Browse files
committed
test(commands/commit): set staging_is_clean to pre_commit_msg_hook
for pass the python-check (3.8)
1 parent ab4e9ab commit aa35216

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/commands/test_commit_command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def test_commit_in_non_git_project(tmpdir, config):
181181
commands.Commit(config, {})
182182

183183

184+
@pytest.mark.usefixtures("staging_is_clean")
184185
def test_commit_from_pre_commit_msg_hook(config, mocker, capsys):
185186
testargs = ["cz", "commit", "--commit-msg-file", "some_file"]
186187
mocker.patch.object(sys, "argv", testargs)

0 commit comments

Comments
 (0)