MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / commit_mock

Function commit_mock

tests/commands/test_commit_command.py:26–29  ·  view source on GitHub ↗
(mocker: MockFixture)

Source from the content-addressed store, hash-verified

24
25@pytest.fixture
26def commit_mock(mocker: MockFixture):
27 return mocker.patch(
28 "commitizen.git.commit", return_value=cmd.Command("success", "", b"", b"", 0)
29 )
30
31
32@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected