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

Function test_update_instance

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

Source from the content-addressed store, hash-verified

172
173@utils.requires_network
174def test_update_instance(repo: Repository) -> None:
175 subrepo_file_path = Path(repo.workdir) / SUBM_PATH / 'master.txt'
176 assert not subrepo_file_path.exists()
177 sm = repo.submodules['TestGitRepository']
178 sm.init()
179 sm.update()
180 assert subrepo_file_path.exists()
181
182
183@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…