(testrepo: Repository)
| 61 | |
| 62 | |
| 63 | def test_add(testrepo: Repository) -> None: |
| 64 | index = testrepo.index |
| 65 | |
| 66 | sha = '0907563af06c7464d62a70cdd135a6ba7d2b41d8' |
| 67 | assert 'bye.txt' not in index |
| 68 | index.add('bye.txt') |
| 69 | assert 'bye.txt' in index |
| 70 | assert len(index) == 3 |
| 71 | assert index['bye.txt'].id == sha |
| 72 | |
| 73 | |
| 74 | def test_add_aspath(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…