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

Function test_remote_create

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

Source from the content-addressed store, hash-verified

48
49
50def test_remote_create(testrepo: Repository) -> None:
51 name = 'upstream'
52 url = 'https://github.com/libgit2/pygit2.git'
53
54 remote = testrepo.remotes.create(name, url)
55
56 assert type(remote) is pygit2.Remote
57 assert name == remote.name
58 assert url == remote.url
59 assert remote.push_url is None
60
61 with pytest.raises(ValueError):
62 testrepo.remotes.create(*(name, url))
63
64
65def test_remote_create_with_refspec(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…