~ruther/guix-local

ea2bde60ede6f9b1d547b37428dac07fe22d88a8 — Sharlatan Hellseher 4 months ago 6b02b5a
gnu: python-fastapi-pagination: Fix tests.

* gnu/packages/python-web.scm (python-fastapi-pagination)[arguments]
<test-flags>: Skip some tests requiring network access and provide
"--asyncio-mode=auto".

Change-Id: I788b0656cba44729984a6c1f8dcbd8a276967b7a
1 files changed, 10 insertions(+), 1 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +10 -1
@@ 12119,7 12119,16 @@ return paginated responses to your clients.")
    (arguments
     (list
      #:test-flags
      '(list "--unit-tests" "--ignore=tests/ext")
      #~(list "--asyncio-mode=auto"
              "--unit-tests"
              "--ignore=tests/ext"
              ;; Netwok access is required.
              "-k" (string-join
                    (list "not test_optional_params[postgres-default]"
                          "test_optional_params[postgres-limit-offset]"
                          "test_optional_params[sqlite-default]"
                          "test_optional_params[sqlite-limit-offset]")
                    " and not "))
      #:phases
      '(modify-phases %standard-phases
         (add-after 'unpack 'patch-tests