gnu: python-pytest-doctestplus: Honor #:tests?.
* gnu/packages/python-check.scm (python-pytest-doctestplus): Honor #:tests? in the custom 'check phase. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>master
parent
b5f990da9c
commit
8923e7de0a
|
@ -414,8 +414,9 @@ are too large to conveniently hard-code them in the tests.")
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||||
;; Make the installed plugin discoverable by Pytest.
|
;; Make the installed plugin discoverable by Pytest.
|
||||||
|
(when tests?
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
(invoke "python" "-m" "pytest" "-k"
|
(invoke "python" "-m" "pytest" "-k"
|
||||||
(string-append ; skip tests that require remote data
|
(string-append ; skip tests that require remote data
|
||||||
|
@ -424,7 +425,7 @@ are too large to conveniently hard-code them in the tests.")
|
||||||
" and not test_remote_data_ignore_whitespace"
|
" and not test_remote_data_ignore_whitespace"
|
||||||
" and not test_remote_data_ellipsis"
|
" and not test_remote_data_ellipsis"
|
||||||
" and not test_remote_data_requires"
|
" and not test_remote_data_requires"
|
||||||
" and not test_remote_data_ignore_warnings")))))))
|
" and not test_remote_data_ignore_warnings"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest python-setuptools-scm))
|
(list python-pytest python-setuptools-scm))
|
||||||
(home-page "https://github.com/astropy/pytest-doctestplus")
|
(home-page "https://github.com/astropy/pytest-doctestplus")
|
||||||
|
|
Reference in New Issue