import: cpan: Rewrite tests to use an HTTP server instead of mocking.
authorLudovic Courtès <ludo@gnu.org>
Wed, 15 Jan 2020 17:35:14 +0000 (18:35 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 15 Jan 2020 17:40:43 +0000 (18:40 +0100)
commit4aea90b1876179aab8d603a42533a6bdf97ccd3c
tree6b117f50914a9a927788360f53217e04a6d534cd
parent69f132554c6bd23df4610a21e636bde5f0578174
import: cpan: Rewrite tests to use an HTTP server instead of mocking.

* guix/import/cpan.scm (%metacpan-base-url): New variable.
(module->dist-name, cpan-fetch): Refer to it instead of the hard-coded URL.
* tests/cpan.scm ("cpan->guix-package"): Use 'with-http-server' instead
of 'mock'.
guix/import/cpan.scm
tests/cpan.scm