mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
7a34e56dc8
commit
8bb6c7425d
1 changed files with 15 additions and 14 deletions
|
@ -13374,7 +13374,8 @@ text.")
|
||||||
(substitute* (find-files "tests" "\\.py$")
|
(substitute* (find-files "tests" "\\.py$")
|
||||||
(("#!/bin/bash") (string-append "#!" bash-exec))))))
|
(("#!/bin/bash") (string-append "#!" bash-exec))))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
(invoke "pytest" "-vv" "-m" "not network" "-k"
|
(invoke "pytest" "-vv" "-m" "not network" "-k"
|
||||||
(string-append
|
(string-append
|
||||||
|
@ -13387,7 +13388,7 @@ text.")
|
||||||
" and not test_put_record_http_destination"
|
" and not test_put_record_http_destination"
|
||||||
" and not test_dependencies"
|
" and not test_dependencies"
|
||||||
" and not test_cancel_running_job"
|
" and not test_cancel_running_job"
|
||||||
" and not test_container_overrides")))))))
|
" and not test_container_overrides"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-flask" ,python-flask)
|
`(("python-flask" ,python-flask)
|
||||||
("python-flask-cors" ,python-flask-cors)
|
("python-flask-cors" ,python-flask-cors)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue