MCPcopy
hub / github.com/pex-tool/pex / requests_tool_pex

Function requests_tool_pex

tests/integration/test_lock_resolver.py:147–158  ·  view source on GitHub ↗
(
    tmpdir_factory,  # type: TempdirFactory
    request,  # type: Any
    requests_lock_strict,  # type: str
)

Source from the content-addressed store, hash-verified

145
146@pytest.fixture(scope="module")
147def requests_tool_pex(
148 tmpdir_factory, # type: TempdirFactory
149 request, # type: Any
150 requests_lock_strict, # type: str
151):
152 # type: (...) -> str
153
154 requests_pex = tmpdir_factory.mktemp("tool", request=request).join("requests.pex")
155 run_pex_command(
156 args=["--lock", requests_lock_strict, "--include-tools", "requests", "-o", requests_pex]
157 ).assert_success()
158 return requests_pex
159
160
161@pytest.fixture

Callers

nothing calls this directly

Calls 4

run_pex_commandFunction · 0.90
mktempMethod · 0.80
assert_successMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected