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

Function test_odb_priorities

test/test_settings.py:250–261  ·  view source on GitHub ↗

Test setting ODB priorities

(priority: int)

Source from the content-addressed store, hash-verified

248
249@pytest.mark.parametrize('priority', [1, 5, 10, 0, -1, -2])
250def test_odb_priorities(priority: int) -> None:
251 """Test setting ODB priorities"""
252 assert hasattr(pygit2.settings, 'set_odb_packed_priority')
253 assert hasattr(pygit2.settings, 'set_odb_loose_priority')
254 assert callable(pygit2.settings.set_odb_packed_priority)
255 assert callable(pygit2.settings.set_odb_loose_priority)
256
257 pygit2.settings.set_odb_packed_priority(priority)
258 pygit2.settings.set_odb_loose_priority(priority)
259
260 pygit2.settings.set_odb_packed_priority(1)
261 pygit2.settings.set_odb_loose_priority(2)
262
263
264def test_ssl_ciphers() -> None:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…