(testrepo: Repository)
| 94 | |
| 95 | |
| 96 | def test_branches_rename(testrepo: Repository) -> None: |
| 97 | new_branch = testrepo.branches['i18n'].rename('new-branch') |
| 98 | assert new_branch.target == I18N_LAST_COMMIT |
| 99 | |
| 100 | new_branch_2 = testrepo.branches.get('new-branch') |
| 101 | assert new_branch_2.target == I18N_LAST_COMMIT |
| 102 | |
| 103 | |
| 104 | def test_branches_rename_error(testrepo: Repository) -> None: |