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

Function test_missing_url

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

Source from the content-addressed store, hash-verified

136
137
138def test_missing_url(repo: Repository) -> None:
139 # Remove "url" from .gitmodules
140 with open(Path(repo.workdir, '.gitmodules'), 'wt') as f:
141 f.write('[submodule "TestGitRepository"]\n')
142 f.write('\tpath = TestGitRepository\n')
143 s = repo.submodules[SUBM_PATH]
144 assert not s.url
145
146
147@utils.requires_network

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…