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

Function test_enable_methods

test/test_settings.py:239–246  ·  view source on GitHub ↗
(method_name: str, default_value: bool)

Source from the content-addressed store, hash-verified

237 ],
238)
239def test_enable_methods(method_name: str, default_value: bool) -> None:
240 assert hasattr(pygit2.settings, method_name)
241 method = getattr(pygit2.settings, method_name)
242 assert callable(method)
243
244 method(True)
245 method(False)
246 method(default_value)
247
248
249@pytest.mark.parametrize('priority', [1, 5, 10, 0, -1, -2])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…