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

Function test_remote_create_with_refspec

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

Source from the content-addressed store, hash-verified

63
64
65def test_remote_create_with_refspec(testrepo: Repository) -> None:
66 name = 'upstream'
67 url = 'https://github.com/libgit2/pygit2.git'
68 fetch = '+refs/*:refs/*'
69
70 remote = testrepo.remotes.create(name, url, fetch)
71
72 assert type(remote) is pygit2.Remote
73 assert name == remote.name
74 assert url == remote.url
75 assert [fetch] == remote.fetch_refspecs
76 assert remote.push_url is None
77
78
79def test_remote_create_anonymous(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…