Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /