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

Function test_template_path

test/test_options.py:139–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138
139def test_template_path() -> None:
140 original_path = option(Option.GET_TEMPLATE_PATH)
141
142 test_path = '/tmp/test_templates'
143 option(Option.SET_TEMPLATE_PATH, test_path)
144 assert option(Option.GET_TEMPLATE_PATH) == test_path
145
146 if original_path:
147 option(Option.SET_TEMPLATE_PATH, original_path)
148 else:
149 option(Option.SET_TEMPLATE_PATH, None)
150
151
152def test_user_agent() -> 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…