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

Function test_user_agent

test/test_settings.py:140–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139
140def test_user_agent() -> None:
141 original = pygit2.settings.user_agent
142 try:
143 pygit2.settings.user_agent = 'test-agent/1.0'
144 assert pygit2.settings.user_agent == 'test-agent/1.0'
145 finally:
146 if original:
147 pygit2.settings.user_agent = original
148
149
150def test_user_agent_product() -> None:

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…