[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH v3 11/21] gnu: python-moto: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH v3 11/21] gnu: python-moto: Respect #:tests?. |
Date: |
Thu, 16 Sep 2021 16:21:02 +0000 |
* gnu/packages/python-xyz.scm (python-moto)[source]: Make some cosmetic
changes.
[arguments]: Respect #:tests? in the custom 'check phase.
---
gnu/packages/python-xyz.scm | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b2be163eec..9f8df19a66 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12673,21 +12673,22 @@ text.")
(("#!/bin/bash")
(string-append "#!" (which "bash"))))))
(replace 'check
- (lambda _
- (setenv "PYTHONPATH" (string-append "./build/lib:"
- (getenv "PYTHONPATH")))
- (invoke "pytest" "-vv" "-m" "not network" "-k"
- (string-append
- ;; These tests require Docker.
- "not test_terminate_job"
- " and not test_invoke_function_from_sqs_exception"
- " and not test_rotate_secret_lambda_invocations"
- ;; ConnectionAborted errors.
- " and not test_put_record_batch_http_destination"
- " and not test_put_record_http_destination"
- " and not test_dependencies"
- " and not test_cancel_running_job"
- " and not test_container_overrides")))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "PYTHONPATH" (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv" "-m" "not network" "-k"
+ (string-append
+ ;; These tests require Docker.
+ "not test_terminate_job"
+ " and not test_invoke_function_from_sqs_exception"
+ " and not test_rotate_secret_lambda_invocations"
+ ;; ConnectionAborted errors.
+ " and not test_put_record_batch_http_destination"
+ " and not test_put_record_http_destination"
+ " and not test_dependencies"
+ " and not test_cancel_running_job"
+ " and not test_container_overrides"))))))))
(native-inputs
`(("python-flask" ,python-flask)
("python-flask-cors" ,python-flask-cors)
--
2.30.2
- [bug#50018] [PATCH v3 09/21] gnu: python-aws-sam-translator: Change source for tests., (continued)
- [bug#50018] [PATCH v3 09/21] gnu: python-aws-sam-translator: Change source for tests., Vinicius Monego, 2021/09/16
- [bug#50018] [PATCH v3 16/21] gnu: Add python-pytest-celery., Vinicius Monego, 2021/09/16
- [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 <=
- [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, 2021/09/16
- [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