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:
parent
4d4e853d76
commit
b830de6596
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue