diff options
Diffstat (limited to 'tests/pypi.scm')
-rw-r--r-- | tests/pypi.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/pypi.scm b/tests/pypi.scm index 43fb1d8628..debe4ce82d 100644 --- a/tests/pypi.scm +++ b/tests/pypi.scm @@ -255,9 +255,15 @@ Requires-Dist: pytest (>=3.1.0); extra == 'testing' ('synopsis "summary") ('description "summary") ('license 'license:lgpl2.0)) - (string=? (bytevector->nix-base32-string - test-source-hash) - hash)) + (and (string=? (bytevector->nix-base32-string + test-source-hash) + hash) + (equal? (pypi->guix-package "foo" #:version "1.0.0") + (pypi->guix-package "foo")) + (catch 'quit + (lambda () + (pypi->guix-package "foo" #:version "42")) + (const #t)))) (x (pk 'fail x #f)))))) |