summaryrefslogtreecommitdiff
path: root/paste/fixture.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Python 3: Always encode params if passed as text typesNils Philippsen2015-08-191-2/+2
| | | | Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
* Replace cgi.parse_qsl w/ six.moves.urllib.parse.parse_sqleliminate_cgi_parse_qsl_2eliminate_cgi_parse_qslMarc Abramowitz2015-04-301-2/+1
| | | | | because `cgi.parse_qsl` is deprecated, according to https://docs.python.org/2/library/cgi.html#cgi.parse_qsl
* Fix Python 3 issue in paste/fixture.pyMarc Abramowitz2015-04-301-1/+1
| | | | by wrapping `map` with `list`.
* Fix fixture on Python 3Victor Stinner2015-04-221-23/+49
| | | | | | | | | | | | | | | | | * wsgi.input must be a binary file, not a text file * Fix fixture.TestApp.__str__() on Python 3: decode body from UTF-8 (with xmlcharrefreplace). * Fix fixture.TestResponse.goto() on Python 3: regex must use bytes, not Unicode. * Fix TestApp._check_status() on Python 3 - Decode body from UTF-8 (with xmlcharrefreplace) to format the error message. - Fix TestApp.encode_multipart() on Python 3: HTTP body must be bytes: encode lines to utf8 and use byte string literals. - Fix TestApp.post() on Python 3: default params must be bytes - Fix TestResponse.__repr__() on Python 3 - Fix TestApp on Python 3: encode params values to UTF-8 - Port TestApp._gen_request() to Python 3
* Python 3: Use six types for stringsCyril Roelandt2014-03-181-7/+8
| | | | | * Replace (str, unicode) with (six.binary_type, six.text_type) * Replace basestring with (six.binary_type, six.text_type)
* Python 3: add parenthesis to print() to support Python 2 and Python 3Cyril Roelandt2014-03-181-14/+16
| | | | Use also "from __future__ import print_function".
* Python 3: don't use tuples in function prototypeCyril Roelandt2014-03-181-1/+2
| | | | Unpack explicitly in the body of the function
* Python 3: use new names of standard library modulesCyril Roelandt2014-03-181-14/+15
| | | | Use "try/except ImportError" to try Python 2 and Python 3 names.
* note return value of form.submitIan Bicking2010-09-021-7/+9
|
* Fixed mustcontain(no=...) (#245)ianb2008-11-161-1/+1
|
* missing importpjenvey2008-06-121-0/+1
|
* deprecate setup_moduleianb2008-06-121-0/+4
|
* fix docstring import typo (#272)ianb2008-06-111-1/+1
|
* Change the value of no-value checkboxes to 'on' instead of 'checked'ianb2008-05-021-2/+1
|
* with TestApp forms, don't submit forms with unnamed fieldsianb2008-05-011-0/+2
|
* safer compare of ints with == instead of ispjenvey2008-04-131-1/+1
|
* Unicode TestApp Response __contains__ test works (#235)ianb2008-03-261-0/+3
|
* Requests can send more than one cookie (#238)ianb2008-03-261-1/+2
|
* only import webbrowser when it's neededpjenvey2008-02-261-1/+1
|
* Look for params values that have an .items methodianb2008-02-171-0/+3
|
* use basecookie instead of simplecookieianb2007-12-171-3/+3
|
* Treat image button like submit button (#216)ianb2007-12-171-0/+2
|
* set CONTENT_TYPE on non-file uploads tooianb2007-09-151-0/+2
|
* default value for text fields is empty string -- at least, that's how moz ↵novalis2007-08-231-1/+6
| | | | seems to do it
* tag names include namespace, so form:error tags are not incorrectly picked upnovalis2007-08-221-1/+1
|
* tag names include namespacenovalis2007-08-221-1/+1
|
* Fix problem with .form and named formsianb2007-07-131-4/+7
|
* Added REST methods to Test, from Anders Pearsonianb2007-05-251-14/+58
|
* Allow list of status in test callsianb2007-01-241-0/+7
|
* added optional pre and post do_request hooks into TestApppjenvey2007-01-231-1/+15
|
* convert old-style classes to new-style classespjenvey2007-01-051-1/+1
|
* fix #127: paste.fixture doesn't correctly handle empty actionianb2006-11-021-1/+1
|
* A big commit, primarily aesthetic/whitespace in nature. This is the result ↵ianb2006-10-201-0/+4
| | | | of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up.
* Don't redirect all stdout when running a request -- capture stdout, but also ↵ianb2006-09-221-1/+21
| | | | let it go to the real stdout
* Fix case when using TestApp, and params={'key': ['list', 'of', 'values']}, ↵ianb2006-09-101-1/+1
| | | | as reported by Syver Enstad
* Apply the fix from the last commit properly (headers in request)ianb2006-08-161-12/+17
|
* The headers variable left out the special case for content_type and ↵ianb2006-08-161-1/+7
| | | | content_length
* doc format fix; better error message from Jamie Wilkinsonianb2006-08-031-0/+2
|
* Fixed problem reported by Charlie Groves with TestApp file uploads with ↵ianb2006-07-201-1/+1
| | | | length-two tuples
* Added a 'no' argument to mustcontainianb2006-07-151-1/+17
|
* Put in a test to keep paste.testing_variables from clobbering an attribute ↵ianb2006-06-211-0/+5
| | | | of the response object
* fixed typo preventing parsing of html forms containing radio buttonspjenvey2006-06-161-1/+1
| | | | | submitted by: Jonas Borgstrom resolves: #115
* Handle case with testapp.post(params={})ianb2006-06-041-1/+1
|
* Fixing default {}, since it will always be retained. Creating a {} for each ↵bbangert2006-06-031-2/+10
| | | | call where its not passed.
* Use ; as the separator for searching paths on Win32thejimmyg2006-03-051-1/+4
|
* Added a .header_dict and .cookies_set attributes to TestResponseianb2006-02-281-0/+4
|
* Stupid typos from last commitianb2006-02-281-1/+1
|
* If we don't expect errors in wsgi.errors, raise an exception immediately ↵ianb2006-02-281-1/+5
| | | | when the error message is printed, instead of waiting until the end
* Allow any stringifiable argument to be passed to TestApp.get for the URLianb2006-02-271-0/+1
|