diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-02-13 16:04:09 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-02-13 16:04:09 +0100 |
commit | ce8963c5b7a728257920aeceeb89e40d166d09f4 (patch) | |
tree | db16b5c43742f872fb006570ac26b874225dfca1 /tests/crate.scm | |
parent | 824e5fe6404e6ae42ffab3270326b4e6da9c8223 (diff) | |
download | guix-ce8963c5b7a728257920aeceeb89e40d166d09f4.tar 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/crate.scm')
-rw-r--r-- | tests/crate.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/crate.scm b/tests/crate.scm index 0bb344bb8a..eb93822bbb 100644 --- a/tests/crate.scm +++ b/tests/crate.scm @@ -65,7 +65,7 @@ (test-assert "crate->guix-package" ;; Replace network resources with sample data. (mock ((guix http-client) http-fetch - (lambda (url) + (lambda (url . rest) (match url ("https://crates.io/api/v1/crates/foo" (open-input-string test-crate)) |