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

Function test_default_signature

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

Source from the content-addressed store, hash-verified

632
633
634def test_default_signature(testrepo: Repository) -> None:
635 config = testrepo.config
636 config['user.name'] = 'Random J Hacker'
637 config['user.email'] = 'rjh@example.com'
638
639 sig = testrepo.default_signature
640 assert 'Random J Hacker' == sig.name
641 assert 'rjh@example.com' == sig.email
642
643
644def test_ident_get_set(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…