(testrepo: Repository)
| 231 | |
| 232 | |
| 233 | def test_change_attributes(testrepo: Repository) -> None: |
| 234 | index = testrepo.index |
| 235 | entry = index['hello.txt'] |
| 236 | ign_entry = index['.gitignore'] |
| 237 | assert ign_entry.id != entry.id |
| 238 | assert entry.mode != FileMode.BLOB_EXECUTABLE |
| 239 | entry.path = 'foo.txt' |
| 240 | entry.id = ign_entry.id |
| 241 | entry.mode = FileMode.BLOB_EXECUTABLE |
| 242 | assert 'foo.txt' == entry.path |
| 243 | assert ign_entry.id == entry.id |
| 244 | assert FileMode.BLOB_EXECUTABLE == entry.mode |
| 245 | |
| 246 | |
| 247 | def test_write_tree_to(testrepo: Repository, tmp_path: Path) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…