(barerepo: Repository)
| 229 | |
| 230 | |
| 231 | def test_amend_commit_no_op(barerepo: Repository) -> None: |
| 232 | repo = barerepo |
| 233 | commit = repo[COMMIT_SHA_TO_AMEND] |
| 234 | assert isinstance(commit, Commit) |
| 235 | assert commit.id == repo.head.target |
| 236 | |
| 237 | amended_oid = repo.amend_commit(commit, None) |
| 238 | assert amended_oid == commit.id |
| 239 | |
| 240 | |
| 241 | def test_amend_commit_argument_types(barerepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…