summaryrefslogtreecommitdiff
path: root/test.py
AgeCommit message (Collapse)Author
2023-06-18add a wsgitools.scgi.asyncio moduleHelmut Grohne
This adds an asyncio implementation of the server side of the SCGI protocol, because asyncore is being deprecated. Unlike the asyncore implementation, this does not yet support sendfile.
2023-06-18add type hints to all of the codeHelmut Grohne
In order to use type hint syntax, we need to bump the minimum Python version to 3.7 and some of the features such as Literal and Protocol are opted in when a sufficiently recent Python is available. This does not make all of the code pass type checking with mypy. A number of typing issues remain, but the output of mypy becomes something one can read through. In adding type hints, a lot of epydoc @type annotations are removed as redundant. This update also adopts black-style line breaking.
2023-06-18drop support for Python 2.xHelmut Grohne
2023-06-18add testcase for scgi.forkpoolHelmut Grohne
2023-06-18add testcase for scgi.asynchronous and fix reusesocketHelmut Grohne
2019-03-10fix DeprecationWarnings in test.pyHelmut Grohne
2018-12-27fix ContentLengthMiddleware(..., maxstore=()) on Py3kHelmut Grohne
On Python 2.x, any integer sorts below the empty tuple. That was exploited in the maxstore parameter, but fails on Python 3 with a TypeError. Also add a regression test. Reported-by: Dominik Brodowski <mail@dominikbrodowski.net>
2015-04-18Merge branch py3kHelmut Grohne
2014-01-06switch to new-style classes entirelyHelmut Grohne
There is no reason to use old-style classes beyond laziness.
2013-06-06fix RequestLogWSGIFilterTestHelmut Grohne
Clarify the type of the log file-like passed to RequestLogWSGIFilter.
2013-06-06fix the py3k part of RequestLogWSGIFilterTestHelmut Grohne
2013-06-06port CachingMiddlewareTest to py3kHelmut Grohne
2013-06-06Merge tag 'wsgitools-0.2.4' into py3kHelmut Grohne
The intent is to port the changes from 0.2.4 to py3k. Conflicts: README test.py wsgitools/scgi/forkpool.py All conflicts were resolved in a minimal way. The test suite now fails for all python versions.
2012-11-28added test for CachingMiddlewareHelmut Grohne
2012-07-02added RequestLogWSGIFilterTestHelmut Grohne
2012-06-29fix hashlib, base64 and other bytes issuesHelmut Grohne
* hashlib.md5 wants bytes now. * string.decode("base64") is now base64.b64decode and works on bytes * binascii.unhexlify is now base64.b16decode and also works on bytes * str.isalnum accepts umlauts, use bytes.isalnum instead
2012-06-28first part of bytes conversionHelmut Grohne
Convert the request body data from str to bytes. This replaces all StringIOs with BytesIOs (removing backwards one more backwards compatibility). Also all character sequences involved in request bodies get a b"" prefix. The StaticContent application takes bytes instead of str (no difference for py2x). The GzipWSGIFilter needs a fixed as a truncate of a BytesIO does not rewind the stream position.
2012-06-28remove workarounds for missing next() and hashlibHelmut Grohne
2012-03-15added a test for GzipWSGIFilterHelmut Grohne
2012-03-15added another NoWriteCallableMiddleware testHelmut Grohne
Not failing. :-)
2012-03-15added failing test for NoWriteCallableMiddlewareHelmut Grohne
Also set the returneddata attribute of the response object instead of the request object.
2011-11-02added digest auth test with qop=authHelmut Grohne
2011-06-08more testcasesHelmut Grohne
2011-06-08added test cases for BasicAuthMiddlewareHelmut Grohne
2011-06-02test.py: exit non-zero on failureHelmut Grohne
The exit status is now the number of failures.
2011-06-01added test case for middlewares.ContentLengthMiddlewareHelmut Grohne
2011-06-01added a test case for applications.StaticFileHelmut Grohne
2011-06-01test.py: improved header checkHelmut Grohne
It previously only checked for the validity of a header and now also checks for the presence of a header.
2010-09-02employ wsgiref.validate.validator in the test suiteHelmut Grohne
2009-07-04added testsuiteHelmut Grohne