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

Function __proxy

test/test_options.py:43–48  ·  view source on GitHub ↗
(name: str, value: object)

Source from the content-addressed store, hash-verified

41
42
43def __proxy(name: str, value: object) -> None:
44 old_value = getattr(pygit2.settings, name)
45 setattr(pygit2.settings, name, value)
46 assert value == getattr(pygit2.settings, name)
47 # Reset to avoid side effects in later tests
48 setattr(pygit2.settings, name, old_value)
49
50
51def test_mwindow_size() -> None:

Callers 2

test_mwindow_size_proxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…