summaryrefslogtreecommitdiff
path: root/cherrypy/test/webtest.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove components from webtest no longer presented by cheroot. Fixes #1708.Jason R. Coombs2018-05-111-2/+2
|
* Run pre-commitv12.0.1Jason R. Coombs2017-11-201-3/+3
|
* Restore cherrypy.test.webtest as a module to ensure it and its contents are ↵Jason R. Coombs2017-11-201-0/+11
| | | | importable for compatibility. Added a deprecation warning to encourage projects to move away from using it.
* Use cheroot 5.9 for webtest module.Jason R. Coombs2017-11-161-622/+0
|
* whitespace removalDan Vinakovsky2017-08-291-1/+1
|
* add testsDan Vinakovsky2017-08-291-0/+10
|
* Use six for http importsJason R. Coombs2017-07-091-2/+2
|
* PEP8fy codebase: eliminated F821 flake8 errorSviatoslav Sydorenko2017-03-121-3/+2
|
* PEP8fy codebase: eliminated E121 and E131 flake8 errorsSviatoslav Sydorenko2017-03-121-3/+3
|
* PEP8fy codebase: eliminated W503 flake8 errorSviatoslav Sydorenko2017-03-121-3/+6
|
* PEP8fy codebase: eliminated E305 flake8 errorSviatoslav Sydorenko2017-03-111-2/+0
|
* Add PATCH to method_with_bodies in .test.webtestSviatoslav Sydorenko2017-01-011-1/+1
| | | | | | It looks there are some places in code not listing all HTTP methods with bodies allowed. Fixing this for cherrypy.test.webtest Ref: #1517
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-57/+57
| | | | pre-commit run double-quote-string-fixer --all-files
* Use the preferred name text_or_bytes to avoid conflation with 'basestring' ↵Jason R. Coombs2016-07-241-3/+3
| | | | which has no equivalent on Python 3.
* Remove unused imports and wildcard importJason R. Coombs2016-07-241-9/+8
|
* Remove unused importJason R. Coombs2016-07-241-1/+1
|
* Replaced 'unicodestr' with 'six.text_type'Jason R. Coombs2016-06-051-7/+7
|
* Rely on six for Python 3 differentiationJason R. Coombs2016-06-051-5/+7
|
* Allow webtest interactivity to be disabled with an environment variable.Jason R. Coombs2016-04-301-1/+25
|
* Substitute the `issubclass` function to `isinstance` to avoid the use of ↵Joel Rivera2016-03-101-2/+1
| | | | magical properties
* Add new argument to openURL for the testsuite to be able toJoel Rivera2016-03-031-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raise subclasses of socket.error (since python3.3 OSError) instead of retrying. This fixes the KeyboardError problem for 3.5 by specifying that subclasses of BadStatusLine can be raised. The longer explanation of the fix: From python3.5 a new exception is retuned when the connection ends abruptly: http.client.RemoteDisconnected RemoteDisconnected is a subclass of: (ConnectionResetError, http.client.BadStatusLine) and ConnectionResetError is an indirect subclass of: OSError From python 3.3 an up socket.error is an alias to OSError following PEP-3151, therefore http.client.RemoteDisconnected is considered a socket.error. raise_subcls specifies the classes that are not going to be considered as a socket.error for the retries. Given that RemoteDisconnected is part BadStatusLine we can use the same call for all py3 versions without sideffects. python < 3.5 will raise directly BadStatusLine which is not a subclass for socket.error/OSError. Fixes issue #1406.
* Remove a hacky monkeypatch. Replace with a simple decoding of the URL on ↵Jason R. Coombs2016-02-061-32/+5
| | | | Python 3.
* Remove compatibility codeJason R. Coombs2016-02-061-11/+1
|
* More PEP8 work.Gustavo Picon2014-01-121-8/+19
|
* More pep8 cleanupsGustavo Picon2014-01-121-2/+2
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-7/+19
| | | | | --HG-- branch : autopep8
* Fixed failure on Python 2 in ↵Jason R. Coombs2012-12-261-1/+1
| | | | | | | cherrypy.test.test_request_obj:RequestObjectTests.test_encoded_headers when the header value was unicode. --HG-- branch : cherrypy-3.2.x
* Fixed failing test case when mimetypes.guess_type('foo.jpeg')[0] == ↵Jason R. Coombs2012-03-131-1/+13
| | | | | | | 'image/pjpeg' --HG-- branch : cherrypy-3.2.x
* Re-saved with whitespace cleanupJason R. Coombs2012-03-131-9/+7
| | | | | --HG-- branch : cherrypy-3.2.x
* A couple of Python2.3 fixes.Robert Brewer2011-07-021-3/+3
|
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+575
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-535/+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.
* Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.Robert Brewer2011-02-241-10/+17
|
* #948 System.in cannot be used in a module that will be loaded by Jython and ↵Sylvain Hellegouarch2010-09-271-2/+1
| | | | CPython as it's an invalid syntax under CPython
* #948 implementing getchar on the Jython platformSylvain Hellegouarch2010-09-271-4/+11
|
* A couple test tweaks.Robert Brewer2010-04-241-1/+0
|
* Convert the tests to use nose instead of our own runner. This strips out ↵Joseph Tate2010-02-241-125/+51
| | | | | | 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.
* A couple syncs with python3.Robert Brewer2009-10-171-8/+8
|
* Removed py3print.Robert Brewer2009-06-141-12/+12
|
* trunk - making assertInBody the same as in python3 branch.Lakin Wecker2009-06-021-1/+1
|
* trunk: more syntax syncs with python3, including a couple bugfixes that were ↵Robert Brewer2009-06-021-1/+1
| | | | done in the python3 branch
* trunk - adding a flush that is needed in python3. Might be superfluous here.Lakin Wecker2009-06-011-1/+2
|
* trunk - a missing import. + whitespace fixes + callable calls removed + ↵Lakin Wecker2009-06-011-0/+1
| | | | python3-esque raising of exceptions
* trunk - adding a py3util module that will normalize as many differences ↵Lakin Wecker2009-06-011-12/+12
| | | | 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''
* trunk - adding test_auth_basic and test_auth_digest into the normal test ↵Lakin Wecker2009-06-011-0/+2
| | | | runs. Also fixing those tests for the new content-type header. Finally, flushing stdout in logtest and webtest.
* Added test to allow checking for existance of a certain value in a ↵jaraco2009-03-311-0/+11
| | | | comma-delimited list in headers
* cherrypy.test - fixing a buglet in r2145 where the unused parts were in the ↵Lakin Wecker2009-03-041-1/+1
| | | | wrong order. Also updating test/test.py's server to use the same import pattern.
* cherrypy.test - updating webtest/helper to allow test names to contain full ↵Lakin Wecker2009-03-041-0/+4
| | | | package names, like: cherrypy.test.test_tidy etc.
* Refactored the interface() function a bit. New WebCase.get_conn method.Robert Brewer2009-02-101-32/+34
|
* Whew. Fixed the whole test suite to properly handle the --host arg.Robert Brewer2008-11-081-0/+14
|