Source

CherryPy / cherrypy / test / test_tools.py

Author Commit Message Labels Comments Date
Robert Brewer
Bye bye, py2/3.
Robert Brewer
More Python 2.3 fixes.
Robert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer
Removed test.py etc.
Joseph Tate
Convert the tests to use nose instead of our own runner. This strips out much coverage and profiling (handled by nose) and lets you focus on writing tests. The biggest changes that have to be done in the tests classes is you have to put the "setup_server" method on the class(es) that need them when running. If you need it for multiple classes, you can use staticmethod() to attach it to multiple classes without using inheritance.
Robert Brewer
sync with python3, including separation of InternalRedirect handling and Exception trapping to WSGI middleware.
Robert Brewer
Removed py3print.
Lakin Wecker
trunk - more changes to bring the two branches into a more similar state - this time normalizing StringIO imports.
Lakin Wecker
trunk - adding a py3util module that will normalize as many differences between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
Robert Brewer
Fixed another gzip/encoding-related test.
Robert Brewer
Brought trunk up to par with the encoding changes from the python3 branch.
Robert Brewer
New error when accessing Tool.on
Robert Brewer
Moved "environment: test_suite" out of individual tests and into helper.py. Moved setup_server() call out of individual tests and into helper.py. Added a new test for per-handler max_request_body_size shenanigans.
Robert Brewer
Silenced some long-known test disparities when using Apache as the server in a separate process.
Robert Brewer
Fixed test suites to match [2069].
Christian Wyglendowski
Committed Python 2.6/2.5.2 WSGI server compatibility patch from Lawouach and myself (see #837).
Robert Brewer
Test for #829 (@tools.response.headers doesn't appear to work with response.stream True).
Robert Brewer
Fix for #820 (start_response with exc_info raises exception even if no output was sent yet). This also fixes related issues in cpwsgi and error output in general.
Robert Brewer
New HandlerWrapperTool.
Robert Brewer
Trunk fix for #752 (Return cherrypy.server to a single-server model): 1. Change restsrv.servers.ServerManager (multiple httpservers) to ServerAdapter (one httpserver). 2. cherrypy.server is now a subclass of ServerAdapter, and is subscribed by default. 3. Made several plugin methods idempotent that weren't before. 4. Added names to win32 bus state events. Also fixed a buglet in win32 block(). 5. Added repr to wspbus.states.State objects. 6. Did ''not'' change …
Robert Brewer
Another similar bugfix noticed by buildbot. This time I grepped for others (and found none) ;).
Robert Brewer
New pywebd module. Trunk is now "3.1alpha".
Robert Brewer
Test and fix for #661 (Cannot create tool out of an object callable). Also a better docstring for HandlerTool.
Robert Brewer
Cleaner test_tools.
Robert Brewer
Fix for #595 (Allow tool priorities to be overridden in config).
Robert Brewer
Blurg. Horrible late rewrite of WSGI stack due to missing close calls (one test fails still: IR with HTTP/1.0).
Robert Brewer
Test for tool kwargs from config using custom toolbox.
Robert Brewer
Better support for custom toolboxes and namespaces: 1. Each Toolbox is now its own config namespace handler, and self-registers as such. 2. The global, app, and request contexts now each allow (but do not force) config namespace handlers to be PEP 343-style context managers, with {{{__enter__}}} and {{{__exit__}}} methods. 3. Each Toolbox and Tool has a new "namespace" attribute. Each Tool automatically inherits the namespace attribute of its To…
Robert Brewer
An attempt to get rid of intermittent errors in test_core.testDemo due to the timing of on_end_request.
Robert Brewer
Fix to tool priorities.
  1. Prev
  2. 1
  3. 2
  4. Next