(barerepo: Repository)
| 132 | |
| 133 | |
| 134 | def test_lookup_commit(barerepo: Repository) -> None: |
| 135 | commit_sha = '5fe808e8953c12735680c257f56600cb0de44b10' |
| 136 | commit = barerepo[commit_sha] |
| 137 | assert commit_sha == commit.id |
| 138 | assert int(ObjectType.COMMIT) == commit.type |
| 139 | assert isinstance(commit, Commit) |
| 140 | assert commit.message == ( |
| 141 | 'Second test data commit.\n\nThis commit has some additional text.\n' |
| 142 | ) |
| 143 | |
| 144 | |
| 145 | def test_lookup_commit_prefix(barerepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…