1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

test_resolver: extra tests for cycles plus restricted keys.

This commit is contained in:
Maurits van Rees 2022-02-01 18:02:35 +01:00
parent 4d4e853d76
commit b830de6596
No known key found for this signature in database
GPG key ID: AAEC1E5318E6FCCE

View file

@ -260,6 +260,32 @@ def test_new_resolver_get_installation_order(
{"one", "two", "three", "four", "five"},
{"one": 1, "two": 2, "three": 3, "four": 4, "five": 5},
),
(
"linear AND four -> three (cycle) AND restricted 1-2-3",
[
(None, "one"),
("one", "two"),
("two", "three"),
("three", "four"),
("four", "five"),
("four", "three"),
],
{"one", "two", "three"},
{"one": 1, "two": 2, "three": 3},
),
(
"linear AND four -> three (cycle) AND restricted 4-5",
[
(None, "one"),
("one", "two"),
("two", "three"),
("three", "four"),
("four", "five"),
("four", "three"),
],
{"four", "five"},
{"four": 4, "five": 5},
),
],
)
def test_new_resolver_topological_weights(