summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add TestResponse.clickbutton onclick kwargordinary-jamie2023-03-091-0/+4
| | | | This change allows the TestResponse to follow customised onclick buttons
* Support for multiple file inputÉloi Rivard2022-01-161-4/+48
|
* Fixed #236: app.lxml support xml responses with encoding declarationGael Pasgrimaud2021-08-261-4/+17
|
* pep8Gael Pasgrimaud2021-08-261-1/+2
|
* Remove all references to thte six packageBoris Staletic2020-12-171-1/+1
|
* Dropped support for Python 2.7 and 3.5David Smith2020-11-0711-145/+70
|
* 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.
* fixed #210Gael Pasgrimaud2019-02-091-0/+7
|
* raise AssertionError on closeJohn Carter2019-01-191-2/+0
|
* Converted lint check_* functions to raise AssertionError instead of assertJohn Carter2019-01-191-4/+2
| | | | So they still check when PYTHONOPTIMIZE>=1
* Explicitly raise AssertionError in response checksJohn Carter2019-01-191-4/+2
| | | | so they still check with PYTHONOPTIMIZE>=1
* Support for PYTHONOPTIMIZE=2, fix tests on PYTHONOPTIMIZE=1, 2John Carter2019-01-183-2/+16
| | | | | | * 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
* Use empty string as default value for submit and button (#205)Benjamin Dauvergne2018-10-041-0/+11
|
* switch to pytestGael Pasgrimaud2018-09-221-16/+16
|
* fixed #193Gael Pasgrimaud2018-05-181-0/+15
|
* avoid UnicodeDecodeError in linter with py2; fixed #186Gael Pasgrimaud2017-10-211-1/+17
|
* Preserve submit order for radio inputs.Florian Schulze2017-10-092-0/+39
|
* Fix strict cookie policy.Florian Schulze2017-08-011-0/+33
| | | | | The commit b35063f1bc6f6b0cd92b68c56838f385b56e8d00 added a shortcut that breaks strict cookie policies. We now add ``.local`` to domain names with no dot in them.
* Improves testing of check_headersBrendan McCollam2017-05-021-6/+26
| | | | | | | | | Adds new tests for: - unicode headers in Py2 - bytes headers in Py3 Updates existing non-latin1 tests to run in both Py2 and Py3.
* Fix fails in existing tests from unicode headersBrendan McCollam2017-05-023-2/+18
|
* fixed #146Gael Pasgrimaud2017-04-121-0/+21
|
* allow to use set_cookie when HTTP_HOST is setGael Pasgrimaud2017-03-151-0/+7
|
* Fix #173: Do not omit file uploads without a file from post.Michael Howitz2017-02-051-3/+7
|
* Remove remaining references to ordereddict packageCorey Wright2017-02-011-1/+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 tests (ignore contributing.rst)Gael Pasgrimaud2016-12-161-5/+1
|
* add test case for bearer auth and append to invalid auth test casePranay Suresh2016-04-101-0/+18
|
* Set Referer on form.submit() (#147)Benjamin Dauvergne2016-03-311-0/+4
| | | | It complies with usual behaviour of current browsers.
* Set Referer header on .click() and .clickbutton() (#147)Benjamin Dauvergne2016-03-311-0/+10
| | | | It complies with usual behavior of current browsers.
* JSON methods respect content_type argument if passedSteven Loria2015-11-141-0/+7
| | | | | Allows, for example: self.post_json(url, data, content_type='application/vnd.api+json')
* reset values of select multipleYannick Chabbert2015-05-291-0/+14
|
* Properly check for default cookiejar arguments.Julian Berman2014-10-181-0/+5
|
* add support for checking custom reason phrase using status parameterLie Ryan2014-06-201-0/+7
|
* Merge branch 'set-cookie' of github.com:luhn/webtestGael Pasgrimaud2014-06-041-0/+21
|\
| * Implement a set_cookie method in TestApp.Theron Luhn2014-06-021-0/+21
| |
* | Fixed #110. Don't ignore forced value on Radio inputZeb DeOs2014-04-241-0/+10
|/
* Fixed #84 Application cookies for localhost are no longer ignoredGael Pasgrimaud2014-04-171-0/+24
|
* improve test coverage. we're back at 100%Gael Pasgrimaud2014-04-162-0/+13
|
* pep8 everywhereGael Pasgrimaud2014-04-165-42/+46
|
* Fixed #89Gael Pasgrimaud2014-04-161-12/+0
|
* Fixed #92 You can now override TestApp.JSONEncoder to use a custom encoderGael Pasgrimaud2014-04-161-2/+3
|
* pep8Gael Pasgrimaud2014-04-161-20/+23
|
* add authorization propertyGael Pasgrimaud2014-04-161-0/+41
|
* rename .txt to .rst; also looks like the new nose.plugins.xunit break almost ↵Gael Pasgrimaud2014-04-151-6/+2
| | | | everything so we force 1.3.0
* fix an issue with xunit & py2.6. 2.6 will die soon hopefullyGael Pasgrimaud2014-04-151-0/+4
|
* Allow selecting by text for multi selectsMarkus Bertheau2014-01-231-0/+12
|
* Allow selecting by text for single selectsMarkus Bertheau2014-01-231-0/+11
|
* resolve conflictGael Pasgrimaud2014-01-172-0/+25
|\
| * Allow selecting submit button by valueMarkus Bertheau2014-01-172-0/+25
| |
* | Merge branch 'ignore-input-type-file-value' of ↵Gael Pasgrimaud2014-01-171-1/+1
|\ \ | | | | | | | | | https://github.com/mbertheau/webtest
| * | Ignore the value attribute of <input type="file">Markus Bertheau2014-01-161-1/+1
| |/ | | | | | | | | | | | | | | Browsers do the same thing, see http://stackoverflow.com/questions/20537696/remember-and-repopulate-file-input/20537822#20537822 Without this, submitting the form as is gives ValueError: upload_files need to be a list of tuples of (fieldname, filename, filecontent, mimetype) or (fieldname, filename, filecontent) or (fieldname, filename); you gave: "['file-field', u's', u'o', u'm', u'e', u'/', u'p', u'a', u't', u'h', u'/', u'f', u'i', u'l', u'e', u"