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

Function mock_entrypoints

tests/test_factory.py:104–106  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

102 eps = [ep_plugin, ep_other_plugin]
103
104 def mock_entrypoints(**kwargs):
105 group = kwargs.get("group")
106 return metadata.EntryPoints(ep for ep in eps if ep.group == group)
107
108 mocker.patch.object(metadata, "entry_points", side_effect=mock_entrypoints)
109

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected