(barerepo: Repository)
| 148 | |
| 149 | @pytest.fixture |
| 150 | def repo(barerepo: Repository) -> Generator[Repository, None, None]: |
| 151 | odb = pygit2.Odb() |
| 152 | |
| 153 | path = Path(barerepo.path) / 'objects' |
| 154 | backend_org = pygit2.OdbBackendPack(path) |
| 155 | backend = ProxyBackend(backend_org) |
| 156 | odb.add_backend(backend, 1) |
| 157 | |
| 158 | repo = pygit2.Repository() |
| 159 | repo.set_odb(odb) |
| 160 | yield repo |
| 161 | |
| 162 | |
| 163 | def test_repo_read(repo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…