Add --no-deps test for the new resolver
@@ -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")
