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

Function mock_plugin

tests/conftest.py:289–292  ·  view source on GitHub ↗
(mocker: MockerFixture, config: BaseConfig)

Source from the content-addressed store, hash-verified

287
288@pytest.fixture
289def mock_plugin(mocker: MockerFixture, config: BaseConfig) -> BaseCommitizen:
290 mock = MockPlugin(config)
291 mocker.patch("commitizen.factory.committer_factory", return_value=mock)
292 return mock
293
294
295SUPPORTED_FORMATS = ("markdown", "textile", "asciidoc", "restructuredtext")

Callers

nothing calls this directly

Calls 1

MockPluginClass · 0.85

Tested by

no test coverage detected