summaryrefslogtreecommitdiff
path: root/paste/fixture.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated imports (#59)jhance2020-09-241-10/+1
| | | | | The BaseCookie import is cleaned up to use six. Where splittype and splithost are used the returned values are not, so they can go away.
* Make gzip middleware stop producing a spurious response body on HEAD ↵Jason Madden2020-01-131-0/+12
| | | | | requests. (#44) Fixes #43
* TestApp: Make unicode urls always work. (#33)Benjamin Peterson2019-09-041-0/+1
| | | Passing a unicode url to get() always worked (assuming the url contained only ASCII), but it didn't work to post(), put(), or delete() if query parameters were included. This change fixes the latter cases.
* Modify TestApp.encode_multipart to handle bytes filenames and params. (#29)3.1.1Benjamin Peterson2019-08-251-15/+7
| | | As the test shows, this fixes passing boths params and upload_files on Python 3.
* paste.fixture: fix form offset handling (#12)Daniel Hahler2018-10-311-6/+2
| | | | | It would fail if the length of bytes and unicode differs. It now passes non-bytes to `Form` directly.
* py3 fixes for form handling in paste.fixture (#8)Daniel Hahler2018-10-301-4/+13
| | | | | | | | | | | | | | | | | * py3 fixes for form handling in paste.fixture It uses "not six.PY2" in contrast to other places in the code to be forward-compatible. I've not looked too closely, but it might make sense to decode body/text in the beginning already, instead of having it as bytes internally?! Also, like mentioned in [1] already, it should probably use the correct source encoding?! 1: https://github.com/cdent/paste/blob/36e5b8bd16a6063ec654faf04541f3a20d19f7fe/paste/fixture.py#L820 * Add test, using/fixing SlowConsumer form app
* Pytest fixes (#9)Daniel Hahler2018-10-301-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | * pytest: fix collection warnings via __test__=False Fixes > "cannot collect test class %r because it has a __init__ constructor Ref: https://github.com/pytest-dev/pytest/issues/2007 * pytest: configure testpaths This is faster with test collection. * pytest: fix warning with doctests Fixes > /usr/lib/python3.7/site-packages/_pytest/python.py:764: > RemovedInPytest4Warning: usage of Generator.Function is deprecated, > please use pytest.Function instead * Minor fixes around s/py.test/pytest/
* Use correct variable when building message for exceptionOnd?ej Nov?2016-03-101-1/+1
| | | | | Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695253
* tox.ini: Measure test coveragetox_coverageMarc Abramowitz2016-03-071-0/+1755