mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: behave: Fix tests.
* gnu/packages/check.scm (behave): Add missing directory to PYTHONPATH before tests.
This commit is contained in:
parent
445013b69d
commit
74471036f6
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue