(
current_target, # type: Target
cyclic_resolve, # type: LockedResolve
)
| 756 | |
| 757 | |
| 758 | def 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 | |
| 790 | def test_resolved(): |
nothing calls this directly
no test coverage detected