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

Function test_remote_create_anonymous

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

Source from the content-addressed store, hash-verified

77
78
79def test_remote_create_anonymous(testrepo: Repository) -> None:
80 url = 'https://github.com/libgit2/pygit2.git'
81
82 remote = testrepo.remotes.create_anonymous(url)
83 assert remote.name is None
84 assert url == remote.url
85 assert remote.push_url is None
86 assert [] == remote.fetch_refspecs
87 assert [] == remote.push_refspecs
88
89
90def test_remote_delete(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

create_anonymousMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…