import: pypi: Adjust URIs in tests.
authorLudovic Courtès <ludo@gnu.org>
Sat, 17 Jun 2017 22:12:28 +0000 (00:12 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 17 Jun 2017 22:14:07 +0000 (00:14 +0200)
This is a followup to d1e7ca2df8c0e0dd601079c77f67ba6828cec08a.

* tests/pypi.scm ("pypi->guix-package")
("pypi->guix-package, wheels"): Expect (pypi-uri "foo" version) for the
'uri' field.

tests/pypi.scm

index 28cc115..74f13e9 100644 (file)
@@ -131,8 +131,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)))))
@@ -194,8 +193,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)))))