mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 07:00:32 -05:00
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>
This commit is contained in:
parent
b5f990da9c
commit
8923e7de0a
1 changed files with 11 additions and 10 deletions
|
@ -414,17 +414,18 @@ (define-public python-pytest-doctestplus
|
|||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||
;; Make the installed plugin discoverable by Pytest.
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "python" "-m" "pytest" "-k"
|
||||
(string-append ; skip tests that require remote data
|
||||
"not test_remote_data_url"
|
||||
" and not test_remote_data_float_cmp"
|
||||
" and not test_remote_data_ignore_whitespace"
|
||||
" and not test_remote_data_ellipsis"
|
||||
" and not test_remote_data_requires"
|
||||
" and not test_remote_data_ignore_warnings")))))))
|
||||
(when tests?
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "python" "-m" "pytest" "-k"
|
||||
(string-append ; skip tests that require remote data
|
||||
"not test_remote_data_url"
|
||||
" and not test_remote_data_float_cmp"
|
||||
" and not test_remote_data_ignore_whitespace"
|
||||
" and not test_remote_data_ellipsis"
|
||||
" and not test_remote_data_requires"
|
||||
" and not test_remote_data_ignore_warnings"))))))))
|
||||
(native-inputs
|
||||
(list python-pytest python-setuptools-scm))
|
||||
(home-page "https://github.com/astropy/pytest-doctestplus")
|
||||
|
|
Loading…
Reference in a new issue