summaryrefslogtreecommitdiff
path: root/webtest
Commit message (Collapse)AuthorAgeFilesLines
* Dropped support for Python 2.7 and 3.5David Smith2020-11-0710-173/+106
|
* Prevent PytestCollectionWarning for TestAppAdam Johnson2020-07-281-0/+3
| | | | | | As per my blog post: https://adamj.eu/tech/2020/07/28/how-to-fix-a-pytest-collection-warning-about-web-tests-test-app-class/ pytest tries to collect `TestApp` where it's imported and raises a warning when it finds it's not a test class. Users currently have to work around this, but it can be solved here by addition of this attribute.
* Merge pull request #226 from atlanticventures/masterGael Pasgrimaud2020-04-301-0/+4
|\ | | | | _RequestCookieAdapter do not have a `host` property
| * Added new host property to _RequestCookieAdapterRudá Porto Filgueiras2020-01-091-0/+4
| | | | | | This is an edge case when running tests in a docker container.
* | docs: Fix simple typo, requets -> requestsTim Gates2020-04-011-1/+1
| | | | | | | | | | | | There is a small typo in webtest/app.py. Closes #224
* | Remove use of deprecated splittype and splithostJeppe Fihl-Pearson2020-02-252-8/+0
| | | | | | | | | | The lines of code which made use of these methods doesn't have any effect so can just be removed.
* | No need for urlencode anymore.Rémy HUBSCHER2020-01-231-1/+0
| |
* | Add queryparams to the head method.Rémy HUBSCHER2020-01-232-8/+15
|/ | | | Fixes #220.
* Support <input type="search">Colin Watson2019-11-101-0/+2
| | | | | | https://html.spec.whatwg.org/multipage/input.html#text-(type=text)-state-and-search-state-(type=search) describes the difference between `type="text"` and `type="search"` as being primarily stylistic.
* Fix bad variable name in check_header kotofos2019-10-091-1/+1
| | | Fix regression introduced in 7d539b6a924edb7af728b3c47b71a06944b41e1d
* Use truth test instead of length == 0postmasters2019-04-101-1/+1
| | | | | | `length` is initially set to `None`. When there is no `Content-Length` header, `length` will still be `None`. So the test `length == 0` is not entirely correct.
* Fix DeprecationWarning: invalid escape sequence \sLaurence Rowe2019-02-151-1/+1
|
* fixed #210Gael Pasgrimaud2019-02-091-0/+4
|
* raise AssertionError on closeJohn Carter2019-01-191-2/+2
|
* Converted lint check_* functions to raise AssertionError instead of assertJohn Carter2019-01-191-79/+147
| | | | So they still check when PYTHONOPTIMIZE>=1
* Explicitly raise AssertionError in response checksJohn Carter2019-01-191-4/+7
| | | | so they still check with PYTHONOPTIMIZE>=1
* Support for PYTHONOPTIMIZE=2, fix tests on PYTHONOPTIMIZE=1, 2John Carter2019-01-181-1/+6
| | | | | | * skip tests that rely on assert if optimize is enabled * skip docstring test if PYTHONOPTIMIZE=2 * try/except on docstring handling in case of PYTHONOPTIMIZE=2
* Fix deprecation warnings for ``collections`` to use ``collections.abc``Steve Piercy2018-11-262-2/+5
| | | | | for ``Iterable`` on Python 3. See #196.
* Use empty string as default value for submit and button (#205)Benjamin Dauvergne2018-10-041-2/+2
|
* more linkcheck and intersphinx fixesSteve Piercy2018-09-102-9/+8
|
* Fix failure of docs build due to no indentation of code blockSteve Piercy2018-09-101-8/+7
| | | | | - grammar fixes - add link via interspinx to python class
* Add ``Email`` class for input fields with type "email".Michael Howitz2018-06-191-0/+6
|
* fixed #193Gael Pasgrimaud2018-05-181-1/+1
|
* Documentation bearer token and JWT authorizationTheron Luhn2018-04-261-2/+6
|
* avoid UnicodeDecodeError in linter with py2; fixed #186Gael Pasgrimaud2017-10-211-4/+7
|
* Preserve submit order for radio inputs.Florian Schulze2017-10-091-7/+22
|
* Fix strict cookie policy.Florian Schulze2017-08-012-5/+6
| | | | | The commit b35063f1bc6f6b0cd92b68c56838f385b56e8d00 added a shortcut that breaks strict cookie policies. We now add ``.local`` to domain names with no dot in them.
* Improved linting for http headersBrendan McCollam2017-05-021-24/+23
| | | | | | | Verify that header names and values are 'native strings' that can be encoded as latin-1. Don't need to coerce headers to str
* fixed #146Gael Pasgrimaud2017-04-121-1/+8
|
* .json now return .json_body; fixed #177Gael Pasgrimaud2017-03-151-5/+2
|
* allow to use set_cookie when HTTP_HOST is setGael Pasgrimaud2017-03-152-4/+7
|
* always show response; fixed #176Gael Pasgrimaud2017-03-051-1/+1
|
* pep8Gael Pasgrimaud2017-03-051-2/+1
|
* add JWT. fixed #153Gael Pasgrimaud2017-03-051-2/+3
|
* Fix #173: Do not omit file uploads without a file from post.Michael Howitz2017-02-051-0/+4
|
* Remove remaining references to ordereddict packageCorey Wright2017-02-012-6/+1
| | | | | | Now that Python 2.6 is unsupported, references to the ordereddict package can be removed in preference of using OrderedDict from the Python standard library's collections module.
* Fix typo in commentPeter Inglesby2017-01-121-1/+1
|
* use text_type() instead of str(). see #164Gael Pasgrimaud2016-09-152-11/+3
|
* do not guess encoding if response's charset is set. See #160Gael Pasgrimaud2016-07-212-4/+12
|
* make sure str and text_type are checkedPranay Suresh2016-04-101-1/+1
|
* reduce complexity use text_typePranay Suresh2016-04-101-11/+3
|
* support python2 and python3Pranay Suresh2016-04-101-3/+13
|
* support bearer authPranay Suresh2016-04-071-0/+2
|
* Set Referer on form.submit() (#147)Benjamin Dauvergne2016-03-311-0/+2
| | | | It complies with usual behaviour of current browsers.
* Set Referer header on .click() and .clickbutton() (#147)Benjamin Dauvergne2016-03-311-1/+4
| | | | It complies with usual behavior of current browsers.
* JSON methods respect content_type argument if passedSteven Loria2015-11-141-2/+1
| | | | | Allows, for example: self.post_json(url, data, content_type='application/vnd.api+json')
* reset values of select multipleYannick Chabbert2015-05-291-12/+7
|
* dont need a specific versionGael Pasgrimaud2015-05-041-1/+1
|
* fixed #135Gael Pasgrimaud2015-05-041-1/+2
|
* fixed #131 prevent passing HTML parameters that conflict with Field kwargs.Joeri Bekker2015-02-061-0/+6
|