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
This commit is contained in:
Ricardo Wurmus 2024-12-20 21:51:58 +01:00
parent aa704e51ab
commit 2825921d1e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -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