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

Function test_remote_delete

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

Source from the content-addressed store, hash-verified

88
89
90def test_remote_delete(testrepo: Repository) -> None:
91 name = 'upstream'
92 url = 'https://github.com/libgit2/pygit2.git'
93
94 testrepo.remotes.create(name, url)
95 assert 2 == len(testrepo.remotes)
96 remote = testrepo.remotes[1]
97
98 assert name == remote.name
99 testrepo.remotes.delete(remote.name)
100 assert 1 == len(testrepo.remotes)
101
102
103def test_remote_rename(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

createMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…