MCPcopy Create free account
hub / github.com/scanny/python-pptx / var_mock

Function var_mock

tests/unitutil/mock.py:126–130  ·  view source on GitHub ↗

Return mock patching the variable with qualified name *q_var_name*.

(request: FixtureRequest, q_var_name: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

124
125
126def var_mock(request: FixtureRequest, q_var_name: str, **kwargs: Any):
127 """Return mock patching the variable with qualified name *q_var_name*."""
128 _patch = patch(q_var_name, **kwargs)
129 request.addfinalizer(_patch.stop)
130 return _patch.start()

Callers 3

font_dirs_fixtureMethod · 0.85
osx_dirs_fixtureMethod · 0.85
mock_oxml_parserFunction · 0.85

Calls

no outgoing calls

Tested by 3

font_dirs_fixtureMethod · 0.68
osx_dirs_fixtureMethod · 0.68
mock_oxml_parserFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…