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

Function test_repo_read

test/test_odb_backend.py:163–171  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

161
162
163def test_repo_read(repo: Repository) -> None:
164 with pytest.raises(TypeError):
165 repo[123] # type: ignore
166
167 utils.assertRaisesWithArg(KeyError, '1' * 40, repo.__getitem__, '1' * 40)
168
169 ab = repo[BLOB_OID]
170 a = repo[BLOB_HEX]
171 assert ab == a

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…