Skip to content

Commit 0058bb5

Browse files
committed
Improve test
1 parent c92f55f commit 0058bb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/functional/test_new_resolver.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,10 @@ def test_new_resolver_constraints(script):
551551
def test_new_resolver_constraint_on_dependency(script):
552552
create_basic_wheel_for_package(script, "base", "1.0", depends=["dep"])
553553
create_basic_wheel_for_package(script, "dep", "1.0")
554+
create_basic_wheel_for_package(script, "dep", "2.0")
555+
create_basic_wheel_for_package(script, "dep", "3.0")
554556
constraints_file = script.scratch_path / "constraints.txt"
555-
constraints_file.write_text("dep==1.0")
557+
constraints_file.write_text("dep==2.0")
556558
script.pip(
557559
"install", "--unstable-feature=resolver",
558560
"--no-cache-dir", "--no-index",
@@ -561,7 +563,7 @@ def test_new_resolver_constraint_on_dependency(script):
561563
"base"
562564
)
563565
assert_installed(script, base="1.0")
564-
assert_installed(script, dep="1.0")
566+
assert_installed(script, dep="2.0")
565567

566568

567569
def test_new_resolver_constraint_on_path(script):

0 commit comments

Comments
 (0)