mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: python-plotly: Allow test phase to be skipped.
* gnu/packages/graph.scm (python-plotly)[arguments]: Wrap custom 'check phase tests with test with tests? keyword.
This commit is contained in:
parent
3e5d811387
commit
e9096ef105
1 changed files with 8 additions and 6 deletions
|
@ -170,12 +170,14 @@ (define-public python-plotly
|
|||
(chdir "packages/python/plotly")
|
||||
#t))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "pytest" "-x" "plotly/tests/test_core")
|
||||
(invoke "pytest" "-x" "plotly/tests/test_io")
|
||||
;; FIXME: Add optional dependencies and enable their tests.
|
||||
;; (invoke "pytest" "-x" "plotly/tests/test_optional")
|
||||
(invoke "pytest" "_plotly_utils/tests")))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-x" "plotly/tests/test_core")
|
||||
(invoke "pytest" "-x" "plotly/tests/test_io")
|
||||
;; FIXME: Add optional dependencies and enable their tests.
|
||||
;; (invoke "pytest" "-x" "plotly/tests/test_optional")
|
||||
(invoke "pytest" "_plotly_utils/tests"))
|
||||
#t))
|
||||
(add-before 'reset-gzip-timestamps 'make-files-writable
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
|
|
Loading…
Reference in a new issue