MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / mock_entrypoints

Function mock_entrypoints

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

Source from the content-addressed store, hash-verified

74 eps = [ep_plugin, ep_other_plugin]
75
76 def mock_entrypoints(**kwargs):
77 group = kwargs.get("group")
78 return metadata.EntryPoints(ep for ep in eps if ep.group == group)
79
80 mocker.patch.object(metadata, "entry_points", side_effect=mock_entrypoints)
81

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…