summaryrefslogtreecommitdiff
path: root/cherrypy/test/test_tutorials.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge PR #1933Sviatoslav Sydorenko2022-02-011-1/+1
|\
| * Fix tutorial testKrystian Rosiński2021-09-131-1/+1
| |
* | Replace cherrypy.org to cherrypy.devManeesh Babu M2021-09-111-1/+1
|/
* Stop using deprecated imp module in testsSviatoslav Sydorenko2019-08-191-2/+1
|
* Remove unused importsJason R. Coombs2018-09-021-1/+0
|
* Remove reliance on sixJason R. Coombs2018-09-021-4/+0
|
* Remove importlib compatibility handling.Jason R. Coombs2017-07-081-8/+1
|
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-34/+34
| | | | pre-commit run double-quote-string-fixer --all-files
* Rely on six for Python 3 differentiationJason R. Coombs2016-06-051-2/+2
|
* Add stray comma to fix behavior on Python 2Jason R. Coombs2016-06-051-1/+1
|
* Refactor tutorial tests such that they're constructed more directly (and not ↵Jason R. Coombs2016-06-051-45/+57
| | | | by invoking a loader on the server itself). Remove test-specific code from the tutorials.
* Use classmethod decoratorJason R. Coombs2016-06-051-1/+1
|
* Call reload from imp, as it's not available in builtins on Python 3.Jason R. Coombs2016-06-051-1/+2
|
* Use expose decorator throughout the codebase.Jason R. Coombs2016-06-051-3/+3
|
* More PEP8 work.Gustavo Picon2014-01-121-14/+16
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-9/+7
| | | | | --HG-- branch : autopep8
* Patch test so that it still matches the expected output, even when spaces ↵Jason R. Coombs2012-12-261-0/+3
| | | | | | | are elided from otherwise blank lines in the source. --HG-- branch : cherrypy-3.2.x
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-031-36/+36
| | | | | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'` --HG-- branch : cherrypy-3.2.x
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+201
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-201/+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.
* Some buglets.Robert Brewer2011-02-251-1/+1
|
* More Python 2.3 fixes.Robert Brewer2011-02-241-1/+2
|
* Test fixes.Robert Brewer2010-12-281-3/+3
|
* Removed test.py etc.Robert Brewer2010-04-271-11/+0
|
* Convert the tests to use nose instead of our own runner. This strips out ↵Joseph Tate2010-02-241-39/+40
| | | | | | 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.
* More trunk test fixes, inlucding backport of [2282] from python3 to trunk.Robert Brewer2009-05-311-7/+6
|
* Moved "environment: test_suite" out of individual tests and into helper.py. ↵Robert Brewer2009-02-101-8/+5
| | | | Moved setup_server() call out of individual tests and into helper.py. Added a new test for per-handler max_request_body_size shenanigans.
* New CRLF test, plus some test suite fixes.Robert Brewer2009-02-051-1/+1
|
* Fix for #784 (Easy resizing of test data for tut09). Thanks to Stonekeeper ↵Robert Brewer2008-04-271-5/+6
| | | | for the patch.
* Half of the fix for #717 (sessions should have a __len__ function). Not ↵Robert Brewer2008-01-171-0/+1
| | | | implemented yet for PG, Memcached.
* API and docstring cleanups:Robert Brewer2006-08-261-1/+1
| | | | | | | | 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. .
* More (final?) config overhaul work:Robert Brewer2006-08-251-1/+1
| | | | | | | | | | 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 default Request and Response objects, not just the main thread. 4. deadlock.timeout is now request.timeout. 5. Renamed config.py to _cpconfig.py; cherrypy.config is now an instance of _cpconfig.Config. I still need to decide what to do about log_config (removed for now).
* Overhaul of config system:Robert Brewer2006-08-241-4/+2
| | | | | | | | | | | | | | | | | 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-0/+2
| | | | | | | | | 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.
* Fixes for #544 and #545 (serveFile issues) in CP 3. Fixes in CP 2 branch ↵Robert Brewer2006-08-031-1/+3
| | | | coming in a separate changeset.
* Removed "filter" from lots of places, including renaming of tests.Robert Brewer2006-06-011-5/+5
|
* Made tree.Application.script_name, and it now defaults to "", not "/".Robert Brewer2006-05-111-2/+2
|
* Root and config are now isolated per app:Robert Brewer2006-05-071-7/+11
| | | | | | | | | | | 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(root, conf)}. 4. The [global] config namespace is now contained in a flat cherrypy.config.globalconf dict. 5. Got rid of handling favicon.ico and the "*" URI (although they may return someday). 6. Upshot is that e.g. test_objectmapping.py takes 1/3 the time as CP 2.2. 7. Moved request body size check into _cprequest from _cpwsgi. 8. Fixed lib/wsgiapp and made a tool for it.
* Moved the following config keys out of the "server." namespace (so that ↵Robert Brewer2006-05-071-4/+4
| | | | | | | | | | | | | | "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
* Further fixes for #498 (separation of test processes), plus fix for #495 ↵Robert Brewer2006-03-291-27/+54
| | | | (tutorial test failure).
* Fix for #361 (Misleading error message).Robert Brewer2005-12-301-1/+2
|
* Big change: camelCase to lower_with_underscore names (still need to update ↵Remi Delon2005-12-031-7/+7
| | | | the book)
* Fix for #376 (individual tests should set sys.path).Robert Brewer2005-11-021-1/+3
|
* Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).Robert Brewer2005-10-311-28/+0
|
* Tutorial fixes, plus a bug in _cputil.getErrorPage.Robert Brewer2005-10-081-0/+28
|
* Using smaller PDF file for tutorials (to reduce the size of the tarball)Remi Delon2005-10-071-2/+2
|
* Initial fix for #333.Robert Brewer2005-10-061-7/+8
|
* Ugly fix for #321. cherrypy.server could really use some encapsulation now.Robert Brewer2005-10-011-2/+0
| | | | | | | | | | | | | | 1. server.start now MUST be called from the main thread, or restart and interrupts won't work. You can stop and restart CherryPy safely now with the server.stop and server.restart methods. However, stop() only suspends the process; if you want to shut down the CP process, raise SystemExit or KeyboardInterrupt. If you need to do so in your own threads, set cherrypy._interrupt to an instance of one of those exceptions. 2. New cherrypy._httpserverclass attribute, so that threads can wait for the HTTP server to truly start. 3. server.start() now defaults serverClass to _missing, so if you were using None to get the WSGIServer, switch to _missing. 4. server has some new methods: start_app_server, start_http_server, stop_http_server, stop_app_server. 5. There's also a new start_with_callback function, so you don't have to code the threading yourself if you want to start the server but run another task in a new thread. 6. test/helper.py doesn't have startServer/stopServer methods anymore. Just call server.start/stop instead.
* Updated ReturnVsYield.pdfRobert Brewer2005-09-281-1/+1
|