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

Function test_user_agent

test/test_options.py:152–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151
152def test_user_agent() -> None:
153 original_agent = option(Option.GET_USER_AGENT)
154
155 test_agent = 'test-agent/1.0'
156 option(Option.SET_USER_AGENT, test_agent)
157 assert option(Option.GET_USER_AGENT) == test_agent
158
159 if original_agent:
160 option(Option.SET_USER_AGENT, original_agent)
161
162
163def test_pack_max_objects() -> None:

Callers

nothing calls this directly

Calls 1

optionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…