Mercurial > hg
comparison tests/test-non-interactive-wsgi @ 9888:510122bb3c7f
hgweb: fix error in 38170eeed18c and introduce test for change
author | Henrik Stuart <hg@hstuart.dk> |
---|---|
date | Thu, 19 Nov 2009 15:54:57 +0100 |
parents | 6c82beaaa11a |
children | 38864218c4cc |
comparison
equal
deleted
inserted
replaced
9887:38170eeed18c | 9888:510122bb3c7f |
---|---|
58 'SERVER_NAME': '127.0.0.1', | 58 'SERVER_NAME': '127.0.0.1', |
59 'SERVER_PORT': os.environ['HGPORT'], | 59 'SERVER_PORT': os.environ['HGPORT'], |
60 'SERVER_PROTOCOL': 'HTTP/1.0' | 60 'SERVER_PROTOCOL': 'HTTP/1.0' |
61 } | 61 } |
62 | 62 |
63 hgweb('.')(env, startrsp) | 63 i = hgweb('.') |
64 i(env, startrsp) | |
64 print '---- ERRORS' | 65 print '---- ERRORS' |
65 print errors.getvalue() | 66 print errors.getvalue() |
67 print '---- OS.ENVIRON wsgi variables' | |
68 print [x for x in os.environ if x.startswith('wsgi')] | |
69 print '---- request.ENVIRON wsgi variables' | |
70 print [x for x in i.repo.ui.environ if x.startswith('wsgi')] | |
66 EOF | 71 EOF |
67 | 72 |
68 python request.py | 73 python request.py |