summaryrefslogtreecommitdiff
path: root/cherrypy/test/modpy.py
Commit message (Collapse)AuthorAgeFilesLines
* Move imports to the headerJason R. Coombs2017-10-061-2/+1
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-14/+14
| | | | pre-commit run double-quote-string-fixer --all-files
* Fix E402 in test/modpySviatoslav Sydorenko2016-09-081-1/+2
|
* Fix flake8 error: F401 '<mod>' imported but unusedSviatoslav Sydorenko2016-08-241-1/+0
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-3/+5
| | | | | --HG-- branch : autopep8
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-031-10/+10
| | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+163
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-163/+0
| | | | goes in the py2 folder, and we can use a single setup.py to install either, depending on the version of Python that runs setup.py install.
* Removed test.py etc.Robert Brewer2010-04-271-2/+2
|
* Merged the 'gateways' branch into trunk.Robert Brewer2009-10-031-5/+4
|
* Removed py3print.Robert Brewer2009-06-141-1/+1
|
* trunk - adding a py3util module that will normalize as many differences ↵Lakin Wecker2009-06-011-1/+1
| | | | 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''
* New CRLF test, plus some test suite fixes.Robert Brewer2009-02-051-0/+3
|
* Rework of test suite to start the engine once per module, and only for ↵Robert Brewer2009-01-291-65/+31
| | | | modules that have a 'setup_server' function. This allows us to include modules which do not need to start a server in the normal test.py testList and exercise them at every full run. See, for example, that test_bus and test_states are now included.
* Silenced some cpmodpy errors due to not using WSGI.Robert Brewer2008-11-081-0/+2
|
* Silenced some long-known test disparities when using Apache as the server in ↵Robert Brewer2008-11-081-0/+5
| | | | a separate process.
* Trunk fix for #752 (Return cherrypy.server to a single-server model):Robert Brewer2007-11-111-1/+2
| | | | | | | | | 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 any callers of cherrypy.server other than what was necessary, to help prove the fixes work without breaking compatibility. Future changesets will be used to modify docs and tutorials n such.
* A couple more modpy test fixes.Robert Brewer2007-06-241-4/+26
|
* modpy wasn't using the "test_suite" environment.Robert Brewer2007-06-241-3/+6
|
* New pywebd module. Trunk is now "3.1alpha".Robert Brewer2007-03-051-1/+1
|
* The modpy tests were not returning an exit code.Robert Brewer2006-12-281-1/+7
|
* Fix for #481 (buildbot quiet mode). Use {{{test.py --dumb}}} to suppress the ↵Robert Brewer2006-10-041-0/+1
| | | | interactive test output features, as well as the "hit enter" prompt at the end.
* SSL support for _cpwsgiserver. One test fails immaterially. Run "test.py ↵Robert Brewer2006-09-101-0/+1
| | | | --ssl" to test.
* mod_python improvements:Robert Brewer2006-09-031-0/+6
| | | | | | 1. Fix to test_config. 2. Skipped some additional tests for known bugs. 3. Documented that mod_python doesn't allow chunked encoding in request.
* Fix for #535 (Apache re-processes Range headers). _cpmodpy now uses a new ↵Robert Brewer2006-09-021-1/+1
| | | | "ignore_headers(['Range'])" Tool by default.
* Typos in test/modpy.py imports.Robert Brewer2006-09-021-2/+2
|
* Overhaul of config system:Robert Brewer2006-08-241-1/+1
| | | | | | | | | | | | | | | | | 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_start_engine_list.append(config.log_config) instead. 5. Old 'dispatch' entry is now 'request.dispatch'. 6. New log entries: log.error.file, log.error.function, log.access.file, log.access.function, log.screen. 7. 'server.max_request_body_size' is now 'request.max_body_size'. 8. environments now only apply to globalconf. 9. The 'development' environment has been removed, since its settings were all the default anyway. 10. The 'embedded' environment has been removed, since it duplicates the 'production' environment now. 11. There's a new 'test_suite' environment. 12. Removed log_file_not_found (from static.py). Something still needs to be done to config.wrap, so it can take dotted names as kwarg keys.
* Made all imports absolute "just in case" for Python 2.5.Robert Brewer2006-08-241-2/+2
|
* WSGI improvements from Christian's cp3-wsgi-remix branch:Robert Brewer2006-08-171-1/+1
| | | | | | | | | 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']. There's a new test_wsgiapps.py (copied from the branch) which helps demonstrate the changes.
* First inclusion of jamwt's mpcp into CP distro as _cpmodpy.py. Some tests ↵Robert Brewer2006-06-201-15/+33
| | | | fail, especially tutorials.
* test/modpy fixes and docs.Robert Brewer2006-06-191-8/+24
|
* Moved the following config keys out of the "server." namespace (so that ↵Robert Brewer2006-05-071-2/+2
| | | | | | | | | | | | | | "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
* Separated cherrypy.server (HTTP) from cherrypy.engine (app):Robert Brewer2006-05-041-1/+1
| | | | | | | | 1. Most CP apps must now make both a call to cherrypy.server.start(server=None) and a call to cherrypy.engine.start(blocking=True). 2. The on_start_server_list and on_stop_server_list are now on_start_engine_list and on_stop_engine_list. 3. "start_with_callback" is now an attribute of Engine. So is "request". 4. Server.start now takes a single "server" arg, which can be a server instance, a string (fully qualified class name), or None (to start the default WSGI server). 5. Server still has a wait method, but otherwise does no blocking.
* modpy test helper updated to use "wsgi.application" option (to match latest ↵Robert Brewer2006-03-311-1/+1
| | | | modpython_gateway).
* Initial fix for #498 (Test suite assumes same process for client and ↵Robert Brewer2006-03-261-0/+114
server). All test modules now wrap the server-side code in a "setup_server" function. New test\modpy module (with several tests failing).