(testrepo: Repository)
| 141 | |
| 142 | |
| 143 | def test_read_tree(testrepo: Repository) -> None: |
| 144 | tree_oid = '68aba62e560c0ebc3396e8ae9335232cd93a3f60' |
| 145 | # Test reading first tree |
| 146 | index = testrepo.index |
| 147 | assert len(index) == 2 |
| 148 | index.read_tree(tree_oid) |
| 149 | assert len(index) == 1 |
| 150 | # Test read-write returns the same oid |
| 151 | assert index.write_tree() == tree_oid |
| 152 | # Test the index is only modified in memory |
| 153 | index.read() |
| 154 | assert len(index) == 2 |
| 155 | |
| 156 | |
| 157 | def test_write_tree(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…