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

Function test_simple_local_resolve

tests/test_resolver.py:122–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121
122def test_simple_local_resolve():
123 # type: () -> None
124 project_wheel = build_wheel(name="project")
125
126 with temporary_dir() as td:
127 safe_copy(project_wheel, os.path.join(td, os.path.basename(project_wheel)))
128 resolved_dists = local_resolve(
129 requirements=[parse_requirement_string("project")],
130 repos_configuration=ReposConfiguration.create(find_links=[Repo(td)]),
131 )
132 assert len(resolved_dists) == 1
133
134
135def test_resolve_cache():

Callers

nothing calls this directly

Calls 8

temporary_dirFunction · 0.90
safe_copyFunction · 0.90
parse_requirement_stringFunction · 0.90
RepoClass · 0.90
local_resolveFunction · 0.85
build_wheelFunction · 0.70
joinMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected