(testrepo: Repository)
| 101 | |
| 102 | |
| 103 | def test_remote_rename(testrepo: Repository) -> None: |
| 104 | remote = testrepo.remotes[0] |
| 105 | |
| 106 | assert REMOTE_NAME == remote.name |
| 107 | problems = testrepo.remotes.rename(remote.name, 'new') |
| 108 | assert [] == problems |
| 109 | assert 'new' != remote.name |
| 110 | |
| 111 | with pytest.raises(ValueError): |
| 112 | testrepo.remotes.rename('', '') |
| 113 | with pytest.raises(ValueError): |
| 114 | testrepo.remotes.rename(None, None) # type: ignore |
| 115 | |
| 116 | |
| 117 | def test_remote_set_url(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…