Lines Matching refs:ws
75 ws = WorkingSet([])
81 assert ad.best_match(req, ws).version == '1.9'
83 ws.add(foo14)
84 assert ad.best_match(req, ws).version == '1.4'
87 ws = WorkingSet([])
88 ws.add(foo12)
89 ws.add(foo14)
91 ad.best_match(req, ws)
94 ws = WorkingSet([])
95 ws.add(foo14)
96 ws.add(foo12)
97 ws.add(foo14)
98 assert ad.best_match(req, ws).version == '1.4'
150 ws = WorkingSet([])
152 assert list(ws.resolve([], ad)) == []
155 ws.resolve(parse_requirements("Foo"), ad)
166 targets = list(ws.resolve(parse_requirements("Foo"), ad))
168 list(map(ws.add, targets))
170 ws.resolve(parse_requirements("Foo==0.9"), ad)
171 ws = WorkingSet([]) # reset
175 ws.resolve(parse_requirements("Foo[bar]"), ad)
183 list(ws.resolve(parse_requirements("Foo[bar]"), ad))
188 ws.resolve(parse_requirements("Foo==1.2\nFoo!=1.2"), ad)
196 ws = WorkingSet([])
197 res = ws.resolve(parse_requirements("Foo;python_version<'2'"), ad)
202 ws = WorkingSet([])
205 res = ws.resolve(parse_requirements("Foo;python_version>='2'"), ad)
226 ws = WorkingSet([])
233 assert list(ws.resolve(parse_requirements("Foo"), ad)) == [Foo]
236 res = list(ws.resolve(parse_requirements("Foo[baz]"), ad))
242 ws = WorkingSet([])
249 assert list(ws.resolve(parse_requirements("Foo"), ad)) == [Foo]
252 res = list(ws.resolve(parse_requirements("Foo[baz-lightyear]"), ad))
257 ws = WorkingSet([])
270 res = list(ws.resolve(parse_requirements("Foo[baz,bar]"), ad))
275 ws = WorkingSet([])
294 res = list(ws.resolve(parse_requirements("a"), ad))
326 ws = WorkingSet([])
328 ws.add(Foo)
334 ws.find(req)
346 ws = WorkingSet([])
349 ws.add(Foo)
352 ws.add(Bar)
354 ws.add(Baz)
356 ws.add(Baz)
359 ws.resolve(parse_requirements("Foo\nBar\n"))