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

Function test_multiple_errors

tests/resolve/test_locked_resolve.py:758–787  ·  view source on GitHub ↗
(
    current_target,  # type: Target
    cyclic_resolve,  # type: LockedResolve
)

Source from the content-addressed store, hash-verified

756
757
758def test_multiple_errors(
759 current_target, # type: Target
760 cyclic_resolve, # type: LockedResolve
761):
762 # type: (...) -> None
763
764 assert_error(
765 cyclic_resolve.resolve(
766 current_target,
767 [req("A==1.0.1")],
768 build_configuration=BuildConfiguration.create(allow_wheels=False),
769 ),
770 dedent(
771 """\
772 Failed to resolve all requirements for {target_description}:
773
774 Configured with:
775 build: True
776 use_wheel: False
777
778 Dependency on a not satisfied, 1 incompatible candidate found:
779 1.) a 1 does not satisfy the following requirements:
780 ==1.0.1 (via: A==1.0.1)
781
782 Dependency on b not satisfied, 1 incompatible candidate found:
783 1.) b 2 (via: A==1.0.1 -> B>=2) does not have any compatible artifacts:
784 file:///repo/B-2.0-py2.py3-none-any.whl
785 """
786 ).format(target_description=current_target.render_description()),
787 )
788
789
790def test_resolved():

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected