gnu: python-aws-xray-sdk: Set PYTHONPATH when running tests.
authorLudovic Courtès <ludo@gnu.org>
Mon, 13 Dec 2021 12:55:17 +0000 (13:55 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 13 Dec 2021 12:55:17 +0000 (13:55 +0100)
* gnu/packages/python-web.scm (python-aws-xray-sdk)[arguments]: Check:
Set PYTHONPATH.

gnu/packages/python-web.scm

index 73a45ca..78ef97f 100644 (file)
@@ -467,6 +467,8 @@ Model} (SAM) templates into AWS CloudFormation templates.")
                                   "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.