[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51396] [PATCH 7/7] gnu: python-moto: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#51396] [PATCH 7/7] gnu: python-moto: Respect #:tests?. |
Date: |
Mon, 25 Oct 2021 19:50:05 +0000 |
* gnu/packages/python-xyz.scm (python-moto)[arguments]: Respect #:tests? in
the custom 'check phase.
---
gnu/packages/python-xyz.scm | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6de6304362..3fb639418c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13114,20 +13114,21 @@ text.")
(substitute* (find-files "tests" "\\.py$")
(("#!/bin/bash") (string-append "#!" bash-exec))))))
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (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"
- ;; These tests also require the network.
- " 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 inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (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"
+ ;; These tests also require the network.
+ " 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#51396] [PATCH 0/7] Update python-moto., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 1/7] gnu: python-aws-sam-translator: Update to 1.39.0., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 5/7] gnu: Update awscli, python-boto3 and python-botocore., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 4/7] gnu: python-s3transfer: Update to 0.5.0., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 2/7] gnu: python-cfn-lint: Update to 0.54.3., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 3/7] gnu: python-cfn-lint: Respect #:tests?., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 6/7] gnu: python-moto: Update to 2.2.11., Vinicius Monego, 2021/10/25
- [bug#51396] [PATCH 7/7] gnu: python-moto: Respect #:tests?.,
Vinicius Monego <=