~ruther/guix-local

ref: 29457c43bfefaa8f661ea9e4e28c770bfeedac2a guix-local/gnu/packages/patches/python-paste-remove-website-test.patch -rw-r--r-- 743 bytes
29457c43 — Ricardo Wurmus gnu: r-mgcv: Update to 1.8-22. 8 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Remove the test to see if the Python Paste website is up.

Obviously without network access there is no way for us to check this, and
it's pretty strange to test a project's website when you really mean to test
the project anyhow...

--- a/tests/test_proxy.py	2016-02-22 19:13:04.040117767 -0800
+++ b/tests/test_proxy.py	2016-02-22 19:13:04.040117767 -0800
@@ -1,12 +1,3 @@
 from paste import proxy
 from paste.fixture import TestApp

-def test_paste_website():
-    # Not the most robust test...
-    # need to test things like POSTing to pages, and getting from pages
-    # that don't set content-length.
-    app = proxy.Proxy('http://pythonpaste.org')
-    app = TestApp(app)
-    res = app.get('/')
-    assert 'documentation' in res
-