mirror of https://github.com/pypa/pip
Add --no-deps test for the new resolver
This commit is contained in:
parent
1a210d1c62
commit
6d3a89c992
|
@ -89,3 +89,25 @@ def test_new_resolver_installs_dependencies(script):
|
|||
"base"
|
||||
)
|
||||
assert_installed(script, base="0.1.0", dep="0.1.0")
|
||||
|
||||
|
||||
def test_new_resolver_ignore_dependencies(script):
|
||||
create_basic_wheel_for_package(
|
||||
script,
|
||||
"base",
|
||||
"0.1.0",
|
||||
depends=["dep"],
|
||||
)
|
||||
create_basic_wheel_for_package(
|
||||
script,
|
||||
"dep",
|
||||
"0.1.0",
|
||||
)
|
||||
script.pip(
|
||||
"install", "--unstable-feature=resolver",
|
||||
"--no-cache-dir", "--no-index", "--no-deps",
|
||||
"--find-links", script.scratch_path,
|
||||
"base"
|
||||
)
|
||||
assert_installed(script, base="0.1.0")
|
||||
assert_not_installed(script, "dep")
|
||||
|
|
Loading…
Reference in New Issue