MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_remote_rename

Function test_remote_rename

test/test_remote.py:103–114  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

101
102
103def 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
117def test_remote_set_url(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

renameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…