Mickaël Schoentgen
d7ed45bbcd
Fix duplicate keys preservation of JSON data ( #1163 )
...
* Fix duplicate keys preservation of JSON data
* Update issue number
* Fix type annotations
* Changes after review
* Rewording
2021-09-21 19:07:59 +02:00
Mickaël Schoentgen
fdd486415a
Fix XML formatter tests
2021-09-01 10:28:03 +02:00
Mickaël Schoentgen
d10e108b5f
Added support for XML formatting ( #1129 )
...
As a side effect, XHTML responses will be pretty-printed too.
2021-08-31 22:49:53 +02:00
Mickaël Schoentgen
c6cbc7dfa5
Uniformize UTF-8 naming ( #1115 )
...
* Uniformize UTF-8 naming
Replace `utf8` -> `utf-8` everywhere.
It should have no impact, `utf8` is an alias of `utf-8` [1].
[1] ee03bad25e/Lib/encodings/aliases.py (L534)
* Always specify the encoding
Let's be explicit over implicit. And prevent future warnings from PEP-597 [1].
[1] https://www.python.org/dev/peps/pep-0597/#using-the-default-encoding-is-a-common-mistake
* Update `UTF8` constant (`utf-8` -> `utf_8`)
* Remove default argument from `str.encode()` and `bytes.decode()`
* Clean-up
2021-08-05 20:58:43 +02:00
Jakub Roztocil
07a0359316
Final touches for #1088 ( #1091 )
...
* Make sure there’s no trailing \n in test files for easier output inspection
* Refactor output matching test utils
* More robust `test_http_307_allow_redirect_post_verbose()`
* Changelog
* Mention HTTP 307 Temporary Redirect re-post behaviour in README
2021-06-15 14:48:44 +02:00
Jakub Roztocil
70ba84dc48
Fix fixture encoding on Windows
2020-09-28 12:53:28 +02:00
Jakub Roztocil
6925d930da
Add support for streamed uploads, --chunked, finish --multipart, etc.
...
Close #201
Close #753
Close #684
Close #903
Related: #452
2020-09-28 12:16:57 +02:00
Jakub Roztocil
356e043651
Added --show-redirects and --max-redirects
...
Closes #157 , #183 , #188 , #246
2016-02-29 14:12:09 +08:00
Jakub Roztocil
2aa53e4be3
Avoid “__init__.py” files in test directories.
...
As recommended here:
https://pytest.org/latest/goodpractises.html
2014-04-28 11:29:41 +02:00
Jakub Roztocil
87806acc56
Cleanup
2014-04-26 23:06:39 +02:00
Jakub Roztocil
eca1ffaedb
More unicode.
2014-04-26 19:47:14 +02:00
Jakub Roztocil
bbc820bf2e
Fixed fixture loading on Windows.
2014-04-26 18:41:28 +02:00
Jakub Roztocil
3478cbd9ff
More unicode tests.
2014-04-26 17:53:01 +02:00
Jakub Roztocil
77dcd6e919
Added unicode characters to json fixture.
2014-04-26 17:37:56 +02:00
Jakub Roztocil
941c0a8c3c
Moved fixture constants to tests.fixtures.
2014-04-24 15:17:04 +02:00
Jakub Roztocil
d5bc564e4f
Allow embeding text (=@) and JSON (:=@) files content into request data fields.
2013-09-24 23:41:18 +02:00
Jakub Roztocil
90d34ffd0d
Added tests for binary request data.
2012-08-01 00:52:30 +02:00