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

Function test_specified_update

test/test_submodule.py:165–170  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

163
164@utils.requires_network
165def test_specified_update(repo: Repository) -> None:
166 subrepo_file_path = Path(repo.workdir) / SUBM_PATH / 'master.txt'
167 assert not subrepo_file_path.exists()
168 repo.submodules.init(submodules=['TestGitRepository'])
169 repo.submodules.update(submodules=['TestGitRepository'])
170 assert subrepo_file_path.exists()
171
172
173@utils.requires_network

Callers

nothing calls this directly

Calls 3

existsMethod · 0.80
initMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…