summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2015-10-12 01:03:25 +0200
committerCyril Roelandt <tipecaml@gmail.com>2015-11-03 21:38:13 +0100
commitd8bdd38201328b95d849dc95073f842db6eb3b8d (patch)
treea8807b55d21649d36bea312299e5757ddb9b8d9e /tests
parent3009334e3b3c148d7a36c76952fbb32addfa2c07 (diff)
downloadguix-d8bdd38201328b95d849dc95073f842db6eb3b8d.tar.gz
import: pypi: Use "pypi-uri" instead of building the URL manually.
* guix/import/pypi.scm (make-pypi-sexp): Use "pypi-uri".
* tests/pypi.scm: Update the tests accordingly.
Diffstat (limited to 'tests')
-rw-r--r--tests/pypi.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/pypi.scm b/tests/pypi.scm
index c772474b82..960b8cd32a 100644
--- a/tests/pypi.scm
+++ b/tests/pypi.scm
@@ -84,8 +84,7 @@ baz > 13.37")
          ('version "1.0.0")
          ('source ('origin
                     ('method 'url-fetch)
-                    ('uri ('string-append "https://example.com/foo-"
-                                          'version ".tar.gz"))
+                    ('uri (pypi-uri "foo" version))
                     ('sha256
                      ('base32
                       (? string? hash)))))