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

Function test_lookup_missing_submodule

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

Source from the content-addressed store, hash-verified

63
64
65def test_lookup_missing_submodule(repo: Repository) -> None:
66 with pytest.raises(KeyError):
67 repo.submodules['does-not-exist']
68 assert repo.submodules.get('does-not-exist') is None
69
70
71def test_listall_submodules(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…