diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-12-20 21:51:58 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:37:25 +0100 |
commit | 2825921d1e0f34eab28b423dfeffc4234efe3d23 (patch) | |
tree | 1f6e4230f486959d384529f09bcfbb72957c2109 /gnu | |
parent | aa704e51abc2b20ca7b431b51fd36c5c2b107b12 (diff) | |
download | guix-2825921d1e0f34eab28b423dfeffc4234efe3d23.tar.gz guix-2825921d1e0f34eab28b423dfeffc4234efe3d23.zip |
gnu: python-httpretty: Enable tests.
* gnu/packages/web.scm (python-httpretty)[arguments]: Enable most tests.
[native-inputs]: Add nss-certs-for-test, python-freezegun, python-httplib2,
and python-pyparsing.
Change-Id: I08d2c14a2e81559d41dc38f0eeb34c2d6c59125a
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/web.scm | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index f73ecc14d4..701fa91876 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -118,6 +118,7 @@ #:use-module (gnu packages bittorrent) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) + #:use-module (gnu packages certs) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) @@ -7110,17 +7111,22 @@ efficient where possible.") (base32 "0s1vjdaf3pk2xd0hvi5f7p3jm2rgwpbc734jdp9r50m1smfhxpi0")))) (build-system python-build-system) (arguments - `(#:tests? #f ; Tests require network access. - #:phases - (modify-phases %standard-phases + (list + #:phases + '(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "nosetests"))))))) + (setenv "EVENTLET_NO_GREENDNS" "YES") + (invoke "nosetests" "--exclude=(passthrough|streaming|httpretty_should_handle)"))))))) (native-inputs - (list python-coverage + (list nss-certs-for-test + python-coverage python-eventlet + python-freezegun + python-httplib2 python-nose + python-pyparsing python-rednose python-requests python-sure |