Source

CherryPy / cherrypy / test / test_tutorials.py

Author Commit Message Labels Comments Date
Joseph Tate
Fix test failure caused by whitespace removal (broke a body verification test)
Gustavo Picon
Removed trailing whitespace from the codebase. sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
Robert Brewer
Bye bye, py2/3.
Robert Brewer
Some buglets.
Robert Brewer
More Python 2.3 fixes.
Robert Brewer
Test fixes.
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
More trunk test fixes, inlucding backport of [2282] from python3 to trunk.
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
New CRLF test, plus some test suite fixes.
Robert Brewer
Fix for #784 (Easy resizing of test data for tut09). Thanks to Stonekeeper for the patch.
Robert Brewer
Half of the fix for #717 (sessions should have a __len__ function). Not implemented yet for PG, Memcached.
Robert Brewer
API and docstring cleanups: 1. Removed WrongConfigValue, decorate, decorate_all, and ExposeItems. 2. Moved cherrypy.logtime to cherrypy.log.time. 3. Reduced cherrypy.config.globalconf back to just cherrypy.config. 4. Moved _cpconfig.default_conf to config.defaults. .
Robert Brewer
More (final?) config overhaul work: 1. Removed cherrypy.config.get! Instead, you should directly inspect cherrypy.request, response, server, etc. Note that request.config.get still works fine. 2. a) cherrypy.log is now an instance of LogManager. It's still callable, but now is the object you inspect instead of calling config.get("log*"). b) cherrypy.log_access is now cherrypy.log.access. 3. All threads should now have access to d…
Robert Brewer
Overhaul of config system: 1. New docstring for config module! 2. Put all entries into a config namespace. New deadlock, log, request and response namespaces. 3. Request and response entries now directly modify attributes of cherrypy.request and .response, and consumer code looks up those attributes, not config. This also allows interactive inspection of defaults. 4. Removed 'log_config' config entry. Use engine.on_star…
Robert Brewer
Made all imports absolute "just in case" for Python 2.5.
Robert Brewer
WSGI improvements from Christian's cp3-wsgi-remix branch: 1. cherrypy.Application is now a WSGI callable. 2. cherrypy.tree may now be used as a WSGI dispatcher by simply calling it. This replaces the _cpwsgi.wsgiApp function. 3. You may now mount arbitrary WSGI apps using tree.graft(wsgi callable, script name). 4. If you set an Application object's script_name to None, it will try to pull script_name from cherrypy.request.wsgi_environ['SCRIPT_NAME'].…
Robert Brewer
Fixes for #544 and #545 (serveFile issues) in CP 3. Fixes in CP 2 branch coming in a separate changeset.
Robert Brewer
Removed "filter" from lots of places, including renaming of tests.
Robert Brewer
Made tree.Application.script_name, and it now defaults to "", not "/".
Robert Brewer
Root and config are now isolated per app: 1. object_path is now called path_info, and there's a new request.script_name attribute. This should equal the mount point of the current application. 2. cherrypy.root is gone, use cherrypy.request.app.root for now instead. Perhaps cherrypy.root will reappear and point to that. 3. cherrypy.tree.mount_points has been replaced with cherrypy.tree.apps, a dict of the form {script_name: Application(…
Robert Brewer
Moved the following config keys out of the "server." namespace (so that "server." may mean "httpserver"): * default_content_type * log_access_file * log_config_options * log_file * log_file_not_found * log_request_headers * log_to_screen * show_tracebacks * throw_errors
Robert Brewer
Further fixes for #498 (separation of test processes), plus fix for #495 (tutorial test failure).
Robert Brewer
Fix for #361 (Misleading error message).
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer
Fix for #376 (individual tests should set sys.path).
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Robert Brewer
Tutorial fixes, plus a bug in _cputil.getErrorPage.
Remi Delon
Using smaller PDF file for tutorials (to reduce the size of the tarball)
  1. Prev
  2. 1
  3. 2
  4. Next