Testing that we're able to iterate of a Tree object and that the resulting sha strings are consistent with the sha strings we could get with other Tree access methods.
(barerepo: Repository)
| 174 | |
| 175 | |
| 176 | def test_iterate_tree(barerepo: Repository) -> None: |
| 177 | """ |
| 178 | Testing that we're able to iterate of a Tree object and that the |
| 179 | resulting sha strings are consistent with the sha strings we could |
| 180 | get with other Tree access methods. |
| 181 | """ |
| 182 | tree = barerepo[TREE_SHA] |
| 183 | assert isinstance(tree, Tree) |
| 184 | for tree_entry in tree: |
| 185 | assert tree_entry.name is not None |
| 186 | assert tree_entry == tree[tree_entry.name] |
| 187 | |
| 188 | |
| 189 | def test_iterate_tree_nested(barerepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…