Source

CherryPy / test / webtest.py

The branch 'cherrypy' does not exist.
Author Commit Message Labels Comments Date
Robert Brewer
webtest.WebCase.assetHeader now returns the header value if found.
Branches
cherrypy
Robert Brewer
Fix for #528 (Allow request body parsing for methods other than "POST" and "PUT").
Branches
cherrypy
Robert Brewer
Support for folded response headers in webtest.
Branches
cherrypy
Robert Brewer
Fix for #524 (tests fail on python < 2.4).
Branches
cherrypy
Robert Brewer
Initial fix for #498 (Test suite assumes same process for client and server). All test modules now wrap the server-side code in a "setup_server" function. New test\modpy module (with several tests failing).
Branches
cherrypy
Robert Brewer
Prettier error message in webtest.py.
Branches
cherrypy
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Branches
cherrypy
Robert Brewer
Implemented Titus Brown's patch for using twill with webtest.
Branches
cherrypy
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Branches
cherrypy
Robert Brewer
Fix for #373 (arbitrary mount points, or "virtual roots"). All internal use of request.path has been changed to inspect request.objectPath instead (the "rewritten path"). The request.path should never be rewritten; instead, it should only be used to generate new URL's based on the original path. The request.originalPath attribute can now probably be deprecated.
Branches
cherrypy
Robert Brewer
webtest sys.e[X]it option now works. There's also a new WebCase.exit() method which you can override, in case you need to do other things before exiting.
Branches
cherrypy
Robert Brewer
More server state tests and fixes: 1. The built-in HTTP servers all failed on restart() because they weren't closing the socket on server.stop. 2. HTTP server start() and stop() methods now do more to make sure the server is truly in a started or stopped state before they return. 3. server.py does a lot more checking and waiting to make sure the HTTP server is truly started or stopped, before allowing the main thread to proceed. So…
Branches
cherrypy
Robert Brewer
webtest assertHeader now coerces the value arg to a string before comparing.
Branches
cherrypy
Robert Brewer
All raised exceptions now conform to "raise Exception([arg])" syntax (no more "raise Exception" or "raise Exception, arg". See http://mail.python.org/pipermail/python-dev/2005-August/055687.html for Guido's pronouncement, which is now part of PEP 8.
Branches
cherrypy
Robert Brewer
New cookies attribute in webtest, to make successive getPage() requests easier.
Branches
cherrypy
Robert Brewer
1. Moved top-level test functions into a new TestHarness class. 2. Removed helper.HOST and .PORT. 3. Removed helper.port_is_free, since cherrypy.server now checks for free port.
Branches
cherrypy
Robert Brewer
Docstrings + minor fixes to test suite.
Branches
cherrypy
Robert Brewer
Whew. All tests now pass for all servers in both 1.0 and 1.1 modes. There's also a new assertNoHeader method for webtest.
Branches
cherrypy
Robert Brewer
Force Host request header on serverless tests.
Branches
cherrypy
Robert Brewer
New assertMatchesBody method in webtest.
Branches
cherrypy
Robert Brewer
Interactive error trapping in webtest.
Branches
cherrypy
Robert Brewer
New webtest methods, such as assertStatus, assertHeader, assertInBody
Branches
cherrypy
Robert Brewer
Bug in handling of response cookies. Fixed + test.
Branches
cherrypy
Robert Brewer
New ignore_all flag in webtest + test_session_filter fixes.
Branches
cherrypy
Robert Brewer
Pulled base web testing functionality into test\webtest.py. Exceptions in server now show traceback in console, and raise ServerError in client test.
Branches
cherrypy