Skip to content

Commit 2cdf43a

Browse files
author
Buck Golemon
committed
_get_pages grew a third argument
1 parent 0ae9562 commit 2cdf43a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/unit/test_finder.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ def test_finder_priority_nonegg_over_eggfragments():
283283

284284
finder = PackageFinder(links, [], session=PipSession())
285285

286-
with patch.object(finder, "_get_pages", lambda x, y: []):
286+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
287287
link = finder.find_requirement(req, False)
288288

289289
assert link.url.endswith('tar.gz')
290290

291291
links.reverse()
292292
finder = PackageFinder(links, [], session=PipSession())
293293

294-
with patch.object(finder, "_get_pages", lambda x, y: []):
294+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
295295
link = finder.find_requirement(req, False)
296296

297297
assert link.url.endswith('tar.gz')
@@ -313,14 +313,14 @@ def test_finder_only_installs_stable_releases(data):
313313
links = ["https://foo/bar-1.0.tar.gz", "https://foo/bar-2.0b1.tar.gz"]
314314
finder = PackageFinder(links, [], session=PipSession())
315315

316-
with patch.object(finder, "_get_pages", lambda x, y: []):
316+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
317317
link = finder.find_requirement(req, False)
318318
assert link.url == "https://foo/bar-1.0.tar.gz"
319319

320320
links.reverse()
321321
finder = PackageFinder(links, [], session=PipSession())
322322

323-
with patch.object(finder, "_get_pages", lambda x, y: []):
323+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
324324
link = finder.find_requirement(req, False)
325325
assert link.url == "https://foo/bar-1.0.tar.gz"
326326

@@ -341,14 +341,14 @@ def test_finder_installs_pre_releases(data):
341341
links = ["https://foo/bar-1.0.tar.gz", "https://foo/bar-2.0b1.tar.gz"]
342342
finder = PackageFinder(links, [], session=PipSession())
343343

344-
with patch.object(finder, "_get_pages", lambda x, y: []):
344+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
345345
link = finder.find_requirement(req, False)
346346
assert link.url == "https://foo/bar-2.0b1.tar.gz"
347347

348348
links.reverse()
349349
finder = PackageFinder(links, [], session=PipSession())
350350

351-
with patch.object(finder, "_get_pages", lambda x, y: []):
351+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
352352
link = finder.find_requirement(req, False)
353353
assert link.url == "https://foo/bar-2.0b1.tar.gz"
354354

@@ -375,14 +375,14 @@ def test_finder_installs_pre_releases_with_version_spec():
375375

376376
finder = PackageFinder(links, [], session=PipSession())
377377

378-
with patch.object(finder, "_get_pages", lambda x, y: []):
378+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
379379
link = finder.find_requirement(req, False)
380380
assert link.url == "https://foo/bar-2.0b1.tar.gz"
381381

382382
links.reverse()
383383
finder = PackageFinder(links, [], session=PipSession())
384384

385-
with patch.object(finder, "_get_pages", lambda x, y: []):
385+
with patch.object(finder, "_get_pages", lambda x, y, z: []):
386386
link = finder.find_requirement(req, False)
387387
assert link.url == "https://foo/bar-2.0b1.tar.gz"
388388

0 commit comments

Comments
 (0)