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

Function test_new_repo

test/test_repository.py:657–663  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

655
656
657def test_new_repo(tmp_path: Path) -> None:
658 repo = init_repository(tmp_path, False)
659
660 oid = repo.write(ObjectType.BLOB, 'Test')
661 assert type(oid) is Oid
662
663 assert (tmp_path / '.git').exists()
664
665
666def test_no_arg(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

init_repositoryFunction · 0.90
existsMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…