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

Function test_encoding

test/test_signature.py:45–49  ·  view source on GitHub ↗
(encoding: None | str)

Source from the content-addressed store, hash-verified

43
44@pytest.mark.parametrize('encoding', [None, 'utf-8', 'iso-8859-1'])
45def test_encoding(encoding: None | str) -> None:
46 signature = pygit2.Signature('Foo Ibáñez', 'foo@example.com', encoding=encoding)
47 __assert(signature, encoding)
48 assert abs(signature.time - time.time()) < 5
49 assert str(signature) == 'Foo Ibáñez <foo@example.com>'
50
51
52def test_default_encoding() -> None:

Callers

nothing calls this directly

Calls 1

__assertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…