(testrepo: Repository)
| 122 | |
| 123 | |
| 124 | def test_blame_with_invalid_line(testrepo: Repository) -> None: |
| 125 | blame = testrepo.blame(PATH) |
| 126 | |
| 127 | with pytest.raises(IndexError): |
| 128 | blame.for_line(0) |
| 129 | with pytest.raises(IndexError): |
| 130 | blame.for_line(100000) |
| 131 | with pytest.raises(IndexError): |
| 132 | blame.for_line(-1) |
| 133 | |
| 134 | |
| 135 | def test_blame_newest(testrepo: Repository) -> None: |