Changeset 1274
- Timestamp:
- 08/24/06 01:35:47
- Files:
-
- trunk/cherrypy/__init__.py (modified) (2 diffs)
- trunk/cherrypy/_cpserver.py (modified) (1 diff)
- trunk/cherrypy/lib/cptools.py (modified) (1 diff)
- trunk/cherrypy/lib/profiler.py (modified) (1 diff)
- trunk/cherrypy/test/helper.py (modified) (1 diff)
- trunk/cherrypy/test/modpy.py (modified) (2 diffs)
- trunk/cherrypy/test/test.py (modified) (4 diffs)
- trunk/cherrypy/test/test_caching.py (modified) (2 diffs)
- trunk/cherrypy/test/test_config.py (modified) (2 diffs)
- trunk/cherrypy/test/test_conn.py (modified) (2 diffs)
- trunk/cherrypy/test/test_core.py (modified) (2 diffs)
- trunk/cherrypy/test/test_decodingencoding.py (modified) (2 diffs)
- trunk/cherrypy/test/test_etags.py (modified) (2 diffs)
- trunk/cherrypy/test/test_gzip.py (modified) (2 diffs)
- trunk/cherrypy/test/test_http.py (modified) (2 diffs)
- trunk/cherrypy/test/test_objectmapping.py (modified) (2 diffs)
- trunk/cherrypy/test/test_proxy.py (modified) (2 diffs)
- trunk/cherrypy/test/test_response_headers.py (modified) (2 diffs)
- trunk/cherrypy/test/test_session.py (modified) (2 diffs)
- trunk/cherrypy/test/test_sessionauthenticate.py (modified) (2 diffs)
- trunk/cherrypy/test/test_states.py (modified) (2 diffs)
- trunk/cherrypy/test/test_static.py (modified) (2 diffs)
- trunk/cherrypy/test/test_tools.py (modified) (2 diffs)
- trunk/cherrypy/test/test_tutorials.py (modified) (2 diffs)
- trunk/cherrypy/test/test_virtualhost.py (modified) (2 diffs)
- trunk/cherrypy/test/test_wsgiapps.py (modified) (2 diffs)
- trunk/cherrypy/test/test_xmlrpc.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/__init__.py
r1249 r1274 5 5 import logging as _logging 6 6 7 from _cperror import HTTPError, HTTPRedirect, InternalRedirect, NotFound8 from _cperror import WrongConfigValue, TimeoutError9 import config10 11 import _cptools7 from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect, NotFound 8 from cherrypy._cperror import WrongConfigValue, TimeoutError 9 from cherrypy import config 10 11 from cherrypy import _cptools 12 12 tools = _cptools.default_toolbox 13 13 14 import _cptree14 from cherrypy import _cptree 15 15 tree = _cptree.Tree() 16 from _cptree import Application17 import _cpengine16 from cherrypy from _cptree import Application 17 from cherrypy import _cpengine 18 18 engine = _cpengine.Engine() 19 import _cpserver19 from cherrypy import _cpserver 20 20 server = _cpserver.Server() 21 21 … … 148 148 """ 149 149 if traceback: 150 import _cperror150 from cherrypy import _cperror 151 151 msg += _cperror.format_exc() 152 152 logfunc = config.get('log_function', _log_message) trunk/cherrypy/_cpserver.py
r1219 r1274 33 33 httpserver = conf('server.instance', None) 34 34 if httpserver is None: 35 import _cpwsgi35 from cherrypy import _cpwsgi 36 36 httpserver = _cpwsgi.WSGIServer() 37 37 if isinstance(httpserver, basestring): trunk/cherrypy/lib/cptools.py
r1270 r1274 2 2 3 3 import cherrypy 4 import http as _http4 from cherrypy import http as _http 5 5 6 6 trunk/cherrypy/lib/profiler.py
r1219 r1274 6 6 You can profile any of your pages as follows: 7 7 8 from cherrypy.lib import profile 8 from cherrypy.lib import profiler 9 9 10 10 class Root: trunk/cherrypy/test/helper.py
r1253 r1274 25 25 import cherrypy 26 26 from cherrypy.lib import http, profiler 27 import webtest27 from cherrypy.test import webtest 28 28 29 29 trunk/cherrypy/test/modpy.py
r1249 r1274 32 32 import time 33 33 34 import test34 from cherrypy import test 35 35 36 36 … … 125 125 126 126 def _run(self, conf): 127 import webtest127 from cherrypy import webtest 128 128 webtest.WebCase.PORT = self.port 129 129 print trunk/cherrypy/test/test.py
r1266 r1274 13 13 import sys 14 14 import os, os.path 15 import webtest15 from cherrypy.test import webtest 16 16 import getopt 17 17 … … 56 56 # helper must be imported lazily so the coverage tool 57 57 # can run against module-level statements within cherrypy. 58 # Also, we have to do a relative import here, not59 # "from cherrypy.test import helper", because the latter58 # Also, we have to do "from cherrypy.test import helper", 59 # exactly like each test module does, because a relative import 60 60 # would stick a second instance of webtest in sys.modules, 61 61 # and we wouldn't be able to globally override the port anymore. 62 import helper62 from cherrypy.test import helper 63 63 webtest.WebCase.PORT = self.port 64 64 print … … 267 267 268 268 if self.server == 'cpmodpy': 269 import modpy269 from cherrypy.test import modpy 270 270 m = modpy.ModPythonTestHarness(self.tests, self.server, 271 271 self.protocol, self.port) … … 273 273 m.run(conf) 274 274 elif self.server == 'modpygw': 275 import modpy275 from cherrypy.test import modpy 276 276 m = modpy.ModPythonTestHarness(self.tests, self.server, 277 277 self.protocol, self.port) trunk/cherrypy/test/test_caching.py
r1263 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 66 66 67 67 68 import helper68 from cherrypy.test import helper 69 69 70 70 class CacheTest(helper.CPWebCase): trunk/cherrypy/test/test_config.py
r1096 r1274 1 1 """Tests for the CherryPy configuration system.""" 2 import test2 from cherrypy.test import test 3 3 test.prefer_parent_path() 4 4 … … 64 64 # Client-side code # 65 65 66 import helper66 from cherrypy.test import helper 67 67 68 68 class ConfigTests(helper.CPWebCase): trunk/cherrypy/test/test_conn.py
r1264 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 46 46 47 47 48 import helper48 from cherrypy.test import helper 49 49 50 50 class ConnectionTests(helper.CPWebCase): trunk/cherrypy/test/test_core.py
r1272 r1274 1 1 """Basic tests for the CherryPy core: request handling.""" 2 2 3 import test3 from cherrypy.test import test 4 4 test.prefer_parent_path() 5 5 … … 390 390 # Client-side code # 391 391 392 import helper392 from cherrypy.test import helper 393 393 394 394 class CoreRequestHandlingTest(helper.CPWebCase): trunk/cherrypy/test/test_decodingencoding.py
r1114 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 29 29 30 30 31 import helper31 from cherrypy.test import helper 32 32 33 33 trunk/cherrypy/test/test_etags.py
r1267 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 29 29 }) 30 30 31 import helper31 from cherrypy.test import helper 32 32 33 33 class ETagTest(helper.CPWebCase): trunk/cherrypy/test/test_gzip.py
r1114 r1274 1 import test1 from cherrypy import test 2 2 test.prefer_parent_path() 3 3 … … 36 36 37 37 38 import helper38 from cherrypy.test import helper 39 39 40 40 europoundUtf8 = u'\x80\xa3'.encode('utf-8') trunk/cherrypy/test/test_http.py
r1140 r1274 6 6 """ 7 7 8 import test8 from cherrypy.test import test 9 9 test.prefer_parent_path() 10 10 … … 45 45 46 46 47 import helper47 from cherrypy.test import helper 48 48 49 49 class HTTPTests(helper.CPWebCase): trunk/cherrypy/test/test_objectmapping.py
r1224 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 145 145 146 146 147 import helper147 from cherrypy.test import helper 148 148 149 149 class ObjectMappingTest(helper.CPWebCase): trunk/cherrypy/test/test_proxy.py
r1233 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 29 29 30 30 31 import helper31 from cherrypy.test import helper 32 32 33 33 class ProxyTest(helper.CPWebCase): trunk/cherrypy/test/test_response_headers.py
r1256 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 30 30 31 31 32 import helper32 from cherrypy.test import helper 33 33 34 34 class ResponseHeadersTest(helper.CPWebCase): trunk/cherrypy/test/test_session.py
r1232 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 51 51 }) 52 52 53 import helper53 from cherrypy.test import helper 54 54 55 55 class SessionTest(helper.CPWebCase): trunk/cherrypy/test/test_sessionauthenticate.py
r1114 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 29 29 30 30 31 import helper31 from cherrypy.test import helper 32 32 33 33 class SessionAuthenticateTest(helper.CPWebCase): trunk/cherrypy/test/test_states.py
r1231 r1274 4 4 import time 5 5 6 import test6 from cherrypy.test import test 7 7 test.prefer_parent_path() 8 8 … … 66 66 67 67 68 import helper68 from cherrypy.test import helper 69 69 70 70 class ServerStateTests(helper.CPWebCase): trunk/cherrypy/test/test_static.py
r1209 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 56 56 }) 57 57 58 import helper58 from cherrypy.test import helper 59 59 60 60 class StaticTest(helper.CPWebCase): trunk/cherrypy/test/test_tools.py
r1261 r1274 3 3 import gzip, StringIO 4 4 import types 5 import test5 from cherrypy.test import test 6 6 test.prefer_parent_path() 7 7 … … 183 183 # Client-side code # 184 184 185 import helper185 from cherrypy.test import helper 186 186 187 187 trunk/cherrypy/test/test_tutorials.py
r1249 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 5 5 6 6 import cherrypy 7 import helper7 from cherrypy.test import helper 8 8 9 9 trunk/cherrypy/test/test_virtualhost.py
r1114 r1274 1 1 2 import test2 from cherrypy.test import test 3 3 test.prefer_parent_path() 4 4 … … 46 46 }) 47 47 48 import helper48 from cherrypy.test import helper 49 49 50 50 class VirtualHostTest(helper.CPWebCase): trunk/cherrypy/test/test_wsgiapps.py
r1260 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 … … 59 59 cherrypy.tree.graft(reversing_middleware(app), '/hosted/app2') 60 60 61 import helper61 from cherrypy.test import helper 62 62 63 63 trunk/cherrypy/test/test_xmlrpc.py
r1172 r1274 1 import test1 from cherrypy.test import test 2 2 test.prefer_parent_path() 3 3 import xmlrpclib … … 66 66 67 67 68 import helper68 from cherrypy.test import helper 69 69 70 70 class XmlRpcTest(helper.CPWebCase):

