(barerepo: Repository)
| 45 | |
| 46 | |
| 47 | def test_emptyodb(barerepo: Repository) -> None: |
| 48 | odb = Odb() |
| 49 | |
| 50 | assert len(list(odb)) == 0 |
| 51 | assert BLOB_HEX not in odb |
| 52 | path = Path(barerepo.path) / 'objects' |
| 53 | odb.add_disk_alternate(path) |
| 54 | assert BLOB_HEX in odb |
| 55 | |
| 56 | |
| 57 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…