(testrepo: Repository)
| 63 | |
| 64 | |
| 65 | def 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 | |
| 79 | def test_remote_create_anonymous(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…