(testrepo: Repository)
| 115 | |
| 116 | |
| 117 | def test_remote_set_url(testrepo: Repository) -> None: |
| 118 | remote = testrepo.remotes['origin'] |
| 119 | assert REMOTE_URL == remote.url |
| 120 | |
| 121 | new_url = 'https://github.com/cholin/pygit2.git' |
| 122 | testrepo.remotes.set_url('origin', new_url) |
| 123 | remote = testrepo.remotes['origin'] |
| 124 | assert new_url == remote.url |
| 125 | |
| 126 | with pytest.raises(ValueError): |
| 127 | testrepo.remotes.set_url('origin', '') |
| 128 | |
| 129 | testrepo.remotes.set_push_url('origin', new_url) |
| 130 | remote = testrepo.remotes['origin'] |
| 131 | assert new_url == remote.push_url |
| 132 | with pytest.raises(ValueError): |
| 133 | testrepo.remotes.set_push_url('origin', '') |
| 134 | |
| 135 | |
| 136 | def test_refspec(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…