MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_ident_get_set

Function test_ident_get_set

test/test_repository.py:644–654  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

642
643
644def test_ident_get_set(testrepo: Repository) -> None:
645 # By default, reflog identity should be unset.
646 assert testrepo.ident == (None, None)
647
648 cname = 'C O Mitter'
649 cemail = 'committer@example.com'
650 testrepo.set_ident(cname, cemail)
651 assert testrepo.ident == (cname, cemail)
652
653 testrepo.set_ident(None, None)
654 assert testrepo.ident == (None, None)
655
656
657def test_new_repo(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

set_identMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…