(encoding: str | None)
| 61 | |
| 62 | @pytest.mark.parametrize('encoding', [None, 'utf-8', 'iso-8859-1']) |
| 63 | def test_repr(encoding: str | None) -> None: |
| 64 | signature = pygit2.Signature( |
| 65 | 'Foo Ibáñez', 'foo@bar.com', 1322174594, 60, encoding=encoding |
| 66 | ) |
| 67 | expected = f"pygit2.Signature('Foo Ibáñez', 'foo@bar.com', 1322174594, 60, {repr(encoding)})" |
| 68 | assert repr(signature) == expected |
| 69 | assert signature == eval(expected) |
| 70 | |
| 71 | |
| 72 | def test_repr_from_commit(barerepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…