Mercurial > hg
comparison tests/test-newcgi.t @ 12743:4c4aeaab2339
check-code: add 'no tab indent' check for unified tests
and fix the offending tests accordingly
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 16 Oct 2010 18:09:01 +0200 |
parents | 70a6734cf761 |
children | aa3f726a2bdb |
comparison
equal
deleted
inserted
replaced
12742:6ab4a7d3c179 | 12743:4c4aeaab2339 |
---|---|
14 > from mercurial.hgweb import hgweb | 14 > from mercurial.hgweb import hgweb |
15 > from mercurial.hgweb import wsgicgi | 15 > from mercurial.hgweb import wsgicgi |
16 > from mercurial.hgweb.request import wsgiapplication | 16 > from mercurial.hgweb.request import wsgiapplication |
17 > | 17 > |
18 > def make_web_app(): | 18 > def make_web_app(): |
19 > return hgweb("test", "Empty test repository") | 19 > return hgweb("test", "Empty test repository") |
20 > | 20 > |
21 > wsgicgi.launch(wsgiapplication(make_web_app)) | 21 > wsgicgi.launch(wsgiapplication(make_web_app)) |
22 > HGWEB | 22 > HGWEB |
23 | 23 |
24 $ chmod 755 hgweb.cgi | 24 $ chmod 755 hgweb.cgi |
40 > from mercurial.hgweb import hgwebdir | 40 > from mercurial.hgweb import hgwebdir |
41 > from mercurial.hgweb import wsgicgi | 41 > from mercurial.hgweb import wsgicgi |
42 > from mercurial.hgweb.request import wsgiapplication | 42 > from mercurial.hgweb.request import wsgiapplication |
43 > | 43 > |
44 > def make_web_app(): | 44 > def make_web_app(): |
45 > return hgwebdir("hgweb.config") | 45 > return hgwebdir("hgweb.config") |
46 > | 46 > |
47 > wsgicgi.launch(wsgiapplication(make_web_app)) | 47 > wsgicgi.launch(wsgiapplication(make_web_app)) |
48 > HGWEBDIR | 48 > HGWEBDIR |
49 | 49 |
50 $ chmod 755 hgwebdir.cgi | 50 $ chmod 755 hgwebdir.cgi |