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:
Efraim Flashner 2021-03-04 14:47:42 +02:00
parent 3e5d811387
commit e9096ef105
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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")))