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.
This commit is contained in:
parent
c2179c27fe
commit
d76e0a36f9
1 changed files with 7 additions and 6 deletions
|
|
@ -1129,12 +1129,13 @@ service processes for your tests with pytest.")
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(substitute* "setup.cfg"
|
(substitute* "setup.cfg"
|
||||||
((".*timeout.*") ""))
|
((".*timeout.*") ""))
|
||||||
;; Make the installed plugin discoverable by Pytest.
|
;; Make the installed plugin discoverable by Pytest.
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
(invoke "pytest" "-vv"))))))
|
(invoke "pytest" "-vv")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pydantic" ,python-pydantic)
|
`(("python-pydantic" ,python-pydantic)
|
||||||
("python-pytest" ,python-pytest)
|
("python-pytest" ,python-pytest)
|
||||||
|
|
|
||||||
Reference in a new issue