gnu: python-aws-xray-sdk: Set PYTHONPATH when running tests.

* gnu/packages/python-web.scm (python-aws-xray-sdk)[arguments]: Check:
Set PYTHONPATH.
This commit is contained in:
Ludovic Courtès 2021-12-13 13:55:17 +01:00
parent 063dfc5636
commit 0b1f5d2477
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -467,6 +467,8 @@ (define-public python-aws-xray-sdk
"tests/ext/aiohttp/test_client.py"))))
(replace 'check
(lambda _
;; Allow "import tests.utils" to work as expected.
(setenv "PYTHONPATH" (getcwd))
(invoke "pytest" "-vv" "tests"))))))
(native-inputs
`(;; These are required for the test suite.