()
| 217 | |
| 218 | |
| 219 | def test_intransitive(): |
| 220 | # type: () -> None |
| 221 | foo1_0 = build_wheel(name="foo", version="1.0.0") |
| 222 | # The nonexistent req ensures that we are actually not acting transitively (as that would fail). |
| 223 | bar1_0 = build_wheel(name="bar", version="1.0.0", install_reqs=["nonexistent==1.0.0"]) |
| 224 | with temporary_dir() as td: |
| 225 | for wheel in (foo1_0, bar1_0): |
| 226 | safe_copy(wheel, os.path.join(td, os.path.basename(wheel))) |
| 227 | with temporary_dir() as cd, cache(cd): |
| 228 | resolved_dists = local_resolve( |
| 229 | requirements=list(parse_requirement_strings(("foo", "bar"))), |
| 230 | repos_configuration=ReposConfiguration.create(find_links=[Repo(td)]), |
| 231 | transitive=False, |
| 232 | ) |
| 233 | assert len(resolved_dists) == 2 |
| 234 | |
| 235 | |
| 236 | def test_resolve_prereleases(): |
nothing calls this directly
no test coverage detected