mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
tests: Adjust for 'http-fetch' change in (guix import json).
This is a followup to commit 81e0bc1834
.
* 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.
This commit is contained in:
parent
824e5fe640
commit
ce8963c5b7
4 changed files with 5 additions and 5 deletions
|
@ -47,7 +47,7 @@
|
|||
(test-assert "gem->guix-package"
|
||||
;; Replace network resources with sample data.
|
||||
(mock ((guix http-client) http-fetch
|
||||
(lambda (url)
|
||||
(lambda (url . rest)
|
||||
(match url
|
||||
("https://rubygems.org/api/v1/gems/foo.json"
|
||||
(values (open-input-string test-json)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue