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

Function test_get_commits_with_signature

tests/test_git.py:253–263  ·  view source on GitHub ↗
(gitconfig: GitConfig)

Source from the content-addressed store, hash-verified

251
252@pytest.mark.usefixtures("in_repo_root")
253def test_get_commits_with_signature(gitconfig: GitConfig):
254 # temporarily turn on --show-signature
255 gitconfig.set("log.showsignature", "true")
256
257 # retrieve a commit that we know has a signature
258 commit = git.get_commits(
259 start="bec20ebf433f2281c70f1eb4b0b6a1d0ed83e9b2",
260 end="9eae518235d051f145807ddf971ceb79ad49953a",
261 )[0]
262
263 assert commit.title.startswith("fix")
264
265
266def test_get_tag_names_has_correct_arrow_annotation():

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected