[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH v3 18/21] gnu: python-celery: Enable tests.
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH v3 18/21] gnu: python-celery: Enable tests. |
Date: |
Thu, 16 Sep 2021 16:21:09 +0000 |
* gnu/packages/python-xyz.scm (python-celery)[arguments]: Remove
'patch-requirements phase. Remove #:tests?. Override 'check phase.
[native-inputs]: Add python-flaky, python-iniconfig, python-moto,
python-msgpack, python-pytest-celery, python-pytest-subtests,
python-pytest-timeout, python-toml.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a3484a94ba..aa0c7118a2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13503,20 +13503,31 @@ Python 2.4 and 2.5, and will draw its
fixes/improvements from python-trunk.")
(base32 "1c6lw31i3v81fyj4yn37lbvv70xdgb389iccirzyjr992vlkv6ld"))))
(build-system python-build-system)
(arguments
- '(;; TODO The tests fail with Python 3.7
- ;; https://github.com/celery/celery/issues/4849
- #:tests? #f
- #:phases
+ '(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-requirements
+ (add-after 'unpack 'skip-problematic-tests
(lambda _
- (substitute* "requirements/test.txt"
- (("pytest>=3\\.0,<3\\.3")
- "pytest>=3.0"))
- #t)))))
+ (for-each delete-file-recursively
+ '("t/distro" ; tests requirements for CI
+ "t/integration")))) ; hangs tests
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest" "t" "-k"
+ ;; AssertionError.
+ "not test_check_privileges_no_fchown")))))))
(native-inputs
`(("python-case" ,python-case)
- ("python-pytest" ,python-pytest)))
+ ("python-flaky" ,python-flaky)
+ ("python-iniconfig" ,python-iniconfig)
+ ("python-moto" ,python-moto)
+ ("python-msgpack" ,python-msgpack)
+ ("python-pytest" ,python-pytest-6)
+ ("python-pytest-celery" ,python-pytest-celery)
+ ("python-pytest-subtests" ,python-pytest-subtests)
+ ("python-pytest-timeout" ,python-pytest-timeout)
+ ("python-toml" ,python-toml)))
(propagated-inputs
`(("python-billiard" ,python-billiard)
("python-boto3" ,python-boto3)
--
2.30.2
- [bug#50018] [PATCH v3 14/21] gnu: python-amqp: Update to 5.0.6., (continued)
- [bug#50018] [PATCH v3 14/21] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 19/21] gnu: Remove python2-celery., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 08/21] gnu: awscli: Update to 1.20.42., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 06/21] gnu: python-s3transfer: Update to 0.5.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 12/21] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 21/21] gnu: Remove python2-amqp., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 17/21] gnu: python-celery: Update to 5.1.2., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 07/21] gnu: python-boto3: Update to 1.18.42., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 11/21] gnu: python-moto: Respect #:tests?., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 13/21] gnu: Add python-pytest-rerunfailures., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 18/21] gnu: python-celery: Enable tests.,
Vinicius Monego <=
- [bug#50018] [PATCH v3 15/21] gnu: python-kombu: Update to 5.1.0., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 20/21] gnu: Remove python2-kombu., Vinicius Monego, 2021/09/16