[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/15: gnu: python-moto: Honor #:tests? flag.
From: |
guix-commits |
Subject: |
15/15: gnu: python-moto: Honor #:tests? flag. |
Date: |
Sat, 11 Dec 2021 18:29:34 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 8bb6c7425d6edf532f2db1be5d09d26af6431e89
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Fri Nov 5 01:58:36 2021 +0000
gnu: python-moto: Honor #:tests? flag.
* gnu/packages/python-xyz.scm (python-moto)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 6ed2407..b3a350a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13374,20 +13374,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)
- 05/15: gnu: Add ascii., (continued)
- 05/15: gnu: Add ascii., guix-commits, 2021/12/11
- 07/15: gnu: python-vcrpy: Update to 4.1.1., guix-commits, 2021/12/11
- 04/15: narinfo: Do not repeat slash when building nar URLs., guix-commits, 2021/12/11
- 08/15: gnu: python-aws-sam-translator: Update to 1.40.0., guix-commits, 2021/12/11
- 06/15: gnu: Add python-ipaddress., guix-commits, 2021/12/11
- 09/15: gnu: python-cfn-lint: Update to 0.54.3., guix-commits, 2021/12/11
- 10/15: gnu: python-cfn-lint: Honor #:tests? flag., guix-commits, 2021/12/11
- 12/15: gnu: python-s3transfer: Honor #:tests? flag., guix-commits, 2021/12/11
- 13/15: gnu: Update awscli, python-boto3 and python-botocore., guix-commits, 2021/12/11
- 11/15: gnu: python-s3transfer: Update to 0.5.0., guix-commits, 2021/12/11
- 15/15: gnu: python-moto: Honor #:tests? flag.,
guix-commits <=
- 14/15: gnu: python-moto: Update to 2.2.12., guix-commits, 2021/12/11