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

Function test_remote_list

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

Source from the content-addressed store, hash-verified

180
181
182def test_remote_list(testrepo: Repository) -> None:
183 assert 1 == len(testrepo.remotes)
184 remote = testrepo.remotes[0]
185 assert REMOTE_NAME == remote.name
186 assert REMOTE_URL == remote.url
187
188 name = 'upstream'
189 url = 'https://github.com/libgit2/pygit2.git'
190 remote = testrepo.remotes.create(name, url)
191 assert remote.name in testrepo.remotes.names()
192 assert remote.name in [x.name for x in testrepo.remotes]
193
194
195@utils.requires_network

Callers

nothing calls this directly

Calls 2

namesMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…