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

Function test_source

tests/resolve/test_locked_resolve.py:329–347  ·  view source on GitHub ↗
(
    current_target,  # type: Target
    ansicolors_exotic,  # type: LockedResolve
)

Source from the content-addressed store, hash-verified

327
328
329def test_source(
330 current_target, # type: Target
331 ansicolors_exotic, # type: LockedResolve
332):
333 # type: (...) -> None
334 assert_error(
335 ansicolors_exotic.resolve(current_target, [req("requests>1")], source="lock.json"),
336 dedent(
337 """\
338 Failed to resolve all requirements for {target_description} from lock.json:
339
340 Configured with:
341 build: True
342 use_wheel: True
343
344 Dependency on requests (via: requests>1) not satisfied, no candidates found.
345 """
346 ).format(target_description=current_target.render_description()),
347 )
348
349
350def test_version_mismatch(

Callers

nothing calls this directly

Calls 4

assert_errorFunction · 0.70
reqFunction · 0.70
resolveMethod · 0.45
render_descriptionMethod · 0.45

Tested by

no test coverage detected