guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50213] [PATCH 10/19] gnu: python-werkzeug: Disable tests that requi


From: jgart
Subject: [bug#50213] [PATCH 10/19] gnu: python-werkzeug: Disable tests that require networking.
Date: Thu, 26 Aug 2021 11:15:44 -0400

* gnu/packages/python-web.scm (python-werkzeug) [arguments]:
Disable tests that require an internet connection.

Co-authored-by: Raghav Gururajan <rg@raghavgururajan.name>
---
 gnu/packages/python-web.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c464c54301..07db685e2a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4112,8 +4112,13 @@ List.  Forked from and using the same API as the 
publicsuffix package.")
          (delete 'check)
          (add-after 'install 'check
            (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; requires networking
+             (for-each delete-file
+               (list "tests/middleware/test_http_proxy.py"
+                     "tests/test_serving.py"
+                     "tests/test_debug.py"))
              (add-installed-pythonpath inputs outputs)
-             (invoke "python" "-m" "pytest"))))))
+             (invoke "pytest" "-vv"))))))
     (propagated-inputs
      `(("python-requests" ,python-requests)))
     (native-inputs
-- 
2.33.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]