[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?. |
Date: |
Wed, 11 Aug 2021 23:44:59 +0000 |
* gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic
changes. Respect #:tests? in the custom 'check phase.
---
gnu/packages/python-web.scm | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e1da025cfb..9572bed39c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -501,23 +501,25 @@ emit information from within their applications to the
AWS X-Ray service.")
"1njcrwanq0py0qpz875bg05jyrs2cvpcc570xxb8rjh139n1nxsh"))))
(build-system python-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- ;; Remove test for the documentation update scripts
- ;; to avoid a dependency on 'git'.
- (delete-file
-
"test/unit/module/maintenance/test_update_documentation.py")
- (delete-file
-
"test/unit/module/maintenance/test_update_resource_specs.py")
- (setenv "PYTHONPATH"
- (string-append "./build/lib:"
- (getenv "PYTHONPATH")))
- (setenv "PATH" (string-append out "/bin:"
- (getenv "PATH")))
- (invoke "python" "-m" "unittest" "discover"
- "-s" "test")))))))
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key outputs tests? #:allow-other-keys)
+ (when tests?
+ (let ((out (assoc-ref outputs "out")))
+ ;; Remove test for the documentation update scripts
+ ;; to avoid a dependency on 'git'.
+ (delete-file
+ "test/unit/module/maintenance/test_update_documentation.py")
+ (delete-file
+ "test/unit/module/maintenance/test_update_resource_specs.py")
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (setenv "PATH" (string-append out "/bin:"
+ (getenv "PATH")))
+ (invoke "python" "-m" "unittest" "discover"
+ "-s" "test"))))))))
(native-inputs
`(("python-pydot" ,python-pydot)
("python-mock" ,python-mock)))
--
2.30.2
- [bug#50018] [PATCH 00/19] Update Celery to version 5., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 01/19] gnu: Add python-click-repl., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 02/19] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 04/19] gnu: python-aws-sam-translator: Update to 1.38.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source for tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?.,
Vinicius Monego <=
- [bug#50018] [PATCH 06/19] gnu: python-cfn-lint: Update to 0.53.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 08/19] gnu: python-moto: Update to 2.2.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 13/19] gnu: python-kombu: Update to 5.1.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 16/19] gnu: python-celery: Enable tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 15/19] gnu: python-celery: Update to 5.1.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 09/19] gnu: python-moto: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 12/19] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 10/19] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 14/19] gnu: Add python-pytest-celery., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 11/19] gnu: Add python-pytest-rerunfailures., Vinicius Monego, 2021/08/11