[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: python-pytest-toolbox: Honor #:tests? flag.
From: |
guix-commits |
Subject: |
02/06: gnu: python-pytest-toolbox: Honor #:tests? flag. |
Date: |
Wed, 27 Oct 2021 09:01:42 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit d76e0a36f93b41bac2d42b85fa80079784cd0b76
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Oct 27 11:01:41 2021 +0300
gnu: python-pytest-toolbox: Honor #:tests? flag.
* gnu/packages/python-check.scm (python-pytest-toolbox)[arguments]:
Adjust custom 'check phase to honor the #:tests? flag.
---
gnu/packages/python-check.scm | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7c2920f..9ae697d 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1129,12 +1129,13 @@ service processes for your tests with pytest.")
'(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (substitute* "setup.cfg"
- ((".*timeout.*") ""))
- ;; Make the installed plugin discoverable by Pytest.
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (substitute* "setup.cfg"
+ ((".*timeout.*") ""))
+ ;; Make the installed plugin discoverable by Pytest.
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv")))))))
(native-inputs
`(("python-pydantic" ,python-pydantic)
("python-pytest" ,python-pytest)
- branch core-updates-frozen updated (a41f93c -> ce6b5eb), guix-commits, 2021/10/27
- 02/06: gnu: python-pytest-toolbox: Honor #:tests? flag.,
guix-commits <=
- 01/06: gnu: python-pytest-toolbox: Fix test suite., guix-commits, 2021/10/27
- 03/06: gnu: python-pytest-mock: Adjust package inputs., guix-commits, 2021/10/27
- 06/06: gnu: python-aiohttp: Sort inputs alphabetically., guix-commits, 2021/10/27
- 05/06: gnu: python-aiohttp: Fix test suite., guix-commits, 2021/10/27
- 04/06: gnu: Add python-pytest-6.1., guix-commits, 2021/10/27