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

Function test_homedir

test/test_options.py:225–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224
225def test_homedir() -> None:
226 original_homedir = option(Option.GET_HOMEDIR)
227
228 test_homedir = '/tmp/test_home'
229 option(Option.SET_HOMEDIR, test_homedir)
230 assert option(Option.GET_HOMEDIR) == test_homedir
231
232 if original_homedir:
233 option(Option.SET_HOMEDIR, original_homedir)
234 else:
235 option(Option.SET_HOMEDIR, None)
236
237
238def test_server_timeouts() -> 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…