gnu: behave: Fix tests.

* gnu/packages/check.scm (behave): Add missing directory to PYTHONPATH before
tests.
This commit is contained in:
Julien Lepiller 2019-12-19 15:34:47 +01:00
parent 445013b69d
commit 74471036f6
No known key found for this signature in database
GPG key ID: 43111F4520086A0C

View file

@ -1962,7 +1962,15 @@ (define-public behave
("python-parse" ,python-parse)
("python-parse-type" ,python-parse-type)))
(arguments
'(#:test-target "behave_test"))
'(#:test-target "behave_test"
#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-library-loading
(lambda _
;; Otherwise, tests fail with no module named 'path'
(setenv "PYTHONPATH" (string-append (getenv "PYTHONPATH") ":"
(getcwd) "/tasks/_vendor"))
#t)))))
(home-page "https://github.com/behave/behave")
(synopsis "Python behavior-driven development")
(description