summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed WSGIRequest not parsing right, updating unit tests for WSGIRequestbbangert2006-03-131-2/+19
|
* Added unit tests to ensure that TypeError is thrown if no default is ↵bbangert2006-03-121-1/+27
| | | | | | provided and no object is pushed to the Proxy. Added ability to define a default object for a StackedObjectProxy
* Adding copyright/license infobbangert2006-03-101-0/+4
|
* Didn't need custom app_iter, as my unit test wasn't following WSGI spec by ↵bbangert2006-03-101-2/+5
| | | | calling close on the response. Unit tests for registry all passing
* Fixes iterable issue by using new IterWrap, likely need to break it into ↵bbangert2006-03-101-10/+66
| | | | wsgilib still, added test case for iterable app
* Testing that nested registry's and using objects within nested stacks works ↵bbangert2006-03-101-0/+32
| | | | (it does)
* Adding registry unit tests, fixed registry to not use weakref's so any ↵bbangert2006-03-101-0/+40
| | | | object can be proxied (including dicts)
* Rename error_document to errordocument to fit PEP 8 (back-compat commit next)ianb2006-03-031-1/+1
|
* (no commit message)cce2006-02-241-2/+2
|
* Added error document support, test suite not complete.thejimmyg2006-02-051-0/+34
|
* Added a simple and lightly tested proxy appianb2006-02-031-0/+12
|
* Added middleware for reading mod_auth_tkt-style signed cookies ↵ianb2006-01-181-0/+31
| | | | (paste.auth.auth_tkt). Added middleware to set user and group based on IP addresses (paste.auth.grantip). Added some modules for handling ranges of IP addresses, taken from some Python Cookbook recipes -- license is unclear on these, but I've requested clarification from the author (shouldn't be released until that is clarified).
* - updated httpserver to have better documentation for serve()cce2006-01-111-0/+1
| | | | | | | | | | | | - added socket_timeout option - added deamon_threads option - the port option to serve() can now be a string - now catching and re-routing most socket errors (which are routine) - converted reload.py to use a deamon thread - added comment why os._exit is used - removed raise_keyboard_interrupt option (this might need to be re-added later, just not sure what it does)
* - add support for 'dd-mon-yyyy' date formatcce2006-01-091-1/+2
|
* - better error checking in parse_datetimecce2006-01-081-33/+32
| | | | - remove unnecessary intermediaries
* - making timedate parser throw more exceptions on errorscce2006-01-081-1/+0
| | | | - cleaning up unnecessary code (that is duplicated in datetime built-in)
* - converted timedelta normalization to be fractions of hourscce2006-01-081-16/+19
| | | | - updated docstrings
* - added some nicer datetime parsing codecce2006-01-081-0/+132
|
* - fixed logic/definition problem /w multi-entry headers;cce2006-01-012-5/+8
| | | | | | | | | | | | | | __call__ now always returns a string value - renamed resolve to values in HTTPHeader to better reflect the public-interface for this (esp for multi-entry headers) - a few bugs in mult-entry headers - added common CGI headers to httpheaders; I know they don't really belong here, but error checking is nice - updated auth.digest and auth.basic to use httpheaders (this is what prompted the above changes) - added WWW_AUTHENTICATe header which will build a response to a digest challenge - fixed capitalization error in fileapp and added corresponding test
* (no commit message)cce2005-12-311-5/+5
|
* - changed all HTTPHeader sub-classes to have a _ prefix, sincecce2005-12-301-59/+59
| | | | | | they are quite private and should (usually) be singeltons. - updated all instances to use UPPPER_CASE format, like CONTENT_TYPE - propigated these changes to tests and to fileapp.py
* - added Range.parse to httpheaderscce2005-12-292-12/+31
| | | | | | | | | - renamed Expires.time to Expires.parse for consistency - updated FileApp/DataApp to return 206 on Partial Content - all HttpHeader(environ) return strings (empty string when not found) so that checks like 'if header-part in HttpHeader(collection)' works without having to check for None - updated FileApp to use Range header (instead of having its own copy)
* - make ContentType and ContentLength pickup CGI environment variable ifcce2005-12-291-0/+10
| | | | | the corresponding header is not found (hopefully this redundance can be removed from WSGI)
* - upgraded fileapp.py to use httpheaderscce2005-12-281-6/+6
| | | | | | | - fixed bug in content-disposition - fixed bug in cache-control next-up: Content-Range, Range headers
* - added Content-Disposition and Cache-Control headerscce2005-12-281-8/+54
| | | | | - added DateHeader base class for Expires, If-Modified-Since, etc. - added apply method for updates /w side-effects
* - overhauled description of httpheaders modulecce2005-12-271-4/+33
| | | | | - added delete and update methods - added regression tests
* major re-work of httpheaderscce2005-12-271-24/+21
|
* - wrappers are not the way to go, will be doing some changescce2005-12-271-32/+0
| | | | to httpheaders to include some of this functionality
* (no commit message)cce2005-12-261-1/+1
|
* - added normalize_headers to paste.httpheaders which sorts a setcce2005-12-262-0/+31
| | | | | | | | | | of outgoing headers and capitalizes them to exactly match the RFC for extremely dumb user agents (which exist... unfortunately) that don't do case-insensitive matches and assume Camel-Case - added ResponseHeaderWrapper to use python properties to access headers which don't use multiple-entities (like Set-Cookie) - updated comment to header_value to explain why , separator works in most cases (but not all)
* - making HTTPHeader not be a string object so that it isn'tcce2005-12-262-4/+4
| | | | | | | | | accidently used as a key in an WSGI or header tuple - distinguishing between multi-value (but single-line) and multi-entry headers such as WWW-Authenticate and Set-Cookie as discussed on the Web-Sig - removed 'dict' like stuff from environ wrapper so that it isn't accidently used as an environ replacement
* - adding environ wrapper to paste.utilcce2005-12-261-0/+20
| | | | (response_headers are next/soon)
* Adding httpheaders, which is similar to httpexceptions only that itcce2005-12-251-0/+32
| | | | | contains a full set of headers /w their corresponding category, version, and an indicator if they are single value or multi-value
* - added Range: functionality to FileAppcce2005-12-251-9/+84
| | | | | | - removed unnecessary trailing whitespace in fixture.py - no longer reporting socket failures in httpserver - fixed some caching issues /w fileapp
* - got rid of unnecessary trailing spaces in httpexceptionscce2005-12-232-10/+69
| | | | | | | | | - made error messages us \r\n rather than just \n in httpexceptions to comply with various browsers - added tests to check FileApp - added support for handling 100 Continue in httpserver - fixingup dumpenviron in wsgilib to dump message body - misc changes to fileapp (mostly documentation)
* - made __call__ for an HTTPException be the same as wsgi_applicationcce2005-12-231-0/+35
| | | | | | | | - added if-modified-since logic to fileapp.py - added helper to mark file/data as cached in fileapp.py - added starter regression test for fileapp.py note: if-modified-since is still slighly broken due to timezone issues (it isn't consistenly keeping gmtime and localtime)
* Fixed up test that was using old import; took out the code that always makes ↵ianb2005-12-182-4/+1
| | | | warnings errors (you have to use -W now -- but it doesn't work with --tkinter, it seems)
* Moved all the internal uses of wsgilib to their correct forms nowianb2005-12-186-8/+13
|
* Module paste.login was removed; remove test tooianb2005-12-181-72/+0
|
* Added -W option to tests, which will turn warnings into errors (warnings ↵ianb2005-12-181-0/+22
| | | | haven't actually been removed yet, though). Split response and fileapp from wsgilib. Some portions of wsgilib may still move to response module, this is just the first cut
* not just direct iterators break this, but middleware that convert the result ↵cce2005-12-151-0/+9
| | | | into an iteration
* committing an example that worked before the recent change to httpexceptionscce2005-12-151-1/+19
|
* Deprecate the wsgilib.error_response functions; stop using them internally ↵ianb2005-12-131-3/+3
| | | | as well, in preference of httpexceptions.*.wsgi_application
* Merged changes from cce branch (r3727:HEAD/4008); the branch is now in sync ↵ianb2005-12-136-17/+235
| | | | with trunk
* Fix module loadingtests/conftest.pyianb2005-11-151-3/+4
|
* Fixed case when the code could not be highlighted because it is too invalid; ↵ianb2005-11-052-8/+26
| | | | fixed tests that broke due to change of output
* Added parser that reads files from an egg using pkg_resourcesianb2005-09-281-0/+20
|
* paste.deployified urlparserianb2005-08-221-1/+1
|
* paste.deployified profilemiddlewareianb2005-08-221-0/+20
|
* Tests and bugfixes for cgitb_catcherianb2005-08-221-0/+75
|