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

Function test_submodule_open

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

Source from the content-addressed store, hash-verified

87
88@utils.requires_network
89def test_submodule_open(repo: Repository) -> None:
90 s = repo.submodules[SUBM_PATH]
91 repo.submodules.init()
92 repo.submodules.update()
93 r = s.open()
94 assert r is not None
95 assert r.head.target == SUBM_HEAD_SHA
96
97
98@utils.requires_network

Callers

nothing calls this directly

Calls 3

openMethod · 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…