summaryrefslogtreecommitdiff
path: root/tests/test_grantip.py
diff options
context:
space:
mode:
authorChris Dent <cdent@anticdent.org>2023-04-30 12:19:09 +0100
committerGitHub <noreply@github.com>2023-04-30 12:19:09 +0100
commit36fd9632d6ad880b24177a08435eb8e1f9b01714 (patch)
treee40622cf6a8167ea54c098a3db2361c6dab96b8c /tests/test_grantip.py
parent59eaf315d0e25ea8189e63d4f448d9808f8eb85d (diff)
downloadpaste-git-36fd9632d6ad880b24177a08435eb8e1f9b01714.tar.gz
Add github actions tests (#77)
Borrowing the configuration from wsg-intercept and then editing to fit so that we've got some automated tests. To get this to work it was necessary to: * adjust python versions * update action version * pin the ubuntu version * fix warning in test_grantip * form.cgi needs to not use six because it is not running in the virtualenv * quiet deprecations in in form.cgi because cgi module is deprecated * Skip the proxy test as it uses httpbin.org which is unreliable
Diffstat (limited to 'tests/test_grantip.py')
-rw-r--r--tests/test_grantip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_grantip.py b/tests/test_grantip.py
index 2ddf7f1..cd5c98a 100644
--- a/tests/test_grantip.py
+++ b/tests/test_grantip.py
@@ -1,7 +1,7 @@
from paste.auth import grantip
from paste.fixture import *
-def test_make_app():
+def _make_app():
def application(environ, start_response):
start_response('200 OK', [('content-type', 'text/plain')])
lines = [
@@ -23,7 +23,7 @@ def test_make_app():
return app
def test_req():
- app = test_make_app()
+ app = _make_app()
def doit(remote_addr):
res = app.get('/', extra_environ={'REMOTE_ADDR': remote_addr})
return res.body