(testrepo: Repository)
| 81 | |
| 82 | |
| 83 | def test_peel_commit(testrepo: Repository) -> None: |
| 84 | # start by looking up the commit |
| 85 | commit_id = testrepo.lookup_reference('refs/heads/master').target |
| 86 | commit = testrepo[commit_id] |
| 87 | # and peel to the tree |
| 88 | tree = commit.peel(ObjectType.TREE) |
| 89 | |
| 90 | assert type(tree) is Tree |
| 91 | assert tree.id == 'fd937514cb799514d4b81bb24c5fcfeb6472b245' |
| 92 | |
| 93 | |
| 94 | def test_peel_commit_type(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…