summaryrefslogtreecommitdiff
path: root/tests/pypi.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-02-13 16:04:09 +0100
committerLudovic Courtès <ludo@gnu.org>2017-02-13 16:04:09 +0100
commitce8963c5b7a728257920aeceeb89e40d166d09f4 (patch)
treedb16b5c43742f872fb006570ac26b874225dfca1 /tests/pypi.scm
parent824e5fe6404e6ae42ffab3270326b4e6da9c8223 (diff)
downloadgnu-guix-ce8963c5b7a728257920aeceeb89e40d166d09f4.tar
gnu-guix-ce8963c5b7a728257920aeceeb89e40d166d09f4.tar.gz
tests: Adjust for 'http-fetch' change in (guix import json).
This is a followup to commit 81e0bc1834490a1a8092c75a0733b15c2b407285. * tests/cpan.scm ("cpan->guix-package"): Add a 'rest' argument to the lambda that mocks 'http-fetch'. * tests/crate.scm ("crate->guix-package"): Likewise. * tests/gem.scm ("gem->guix-package"): Likewise. * tests/pypi.scm ("pypi->guix-package"): Likewise. ("pypi->guix-package, wheels"): Likewise.
Diffstat (limited to 'tests/pypi.scm')
-rw-r--r--tests/pypi.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pypi.scm b/tests/pypi.scm
index a132900566..28cc115a9d 100644
--- a/tests/pypi.scm
+++ b/tests/pypi.scm
@@ -118,7 +118,7 @@ baz > 13.37")
("https://example.com/foo-1.0.0-py2.py3-none-any.whl" #f)
(_ (error "Unexpected URL: " url)))))
(mock ((guix http-client) http-fetch
- (lambda (url)
+ (lambda (url . rest)
(match url
("https://pypi.python.org/pypi/foo/json"
(values (open-input-string test-json)
@@ -181,7 +181,7 @@ baz > 13.37")
(delete-file-recursively "foo-1.0.0.dist-info")))
(_ (error "Unexpected URL: " url)))))
(mock ((guix http-client) http-fetch
- (lambda (url)
+ (lambda (url . rest)
(match url
("https://pypi.python.org/pypi/foo/json"
(values (open-input-string test-json)