Jakub Roztocil
7917f1b40c
Build fixes and clean-up
...
* reflect Python 3.7 release
* fix `pycodestyle` errors
* update `pycodestyle` config
* move `pytest` and `pycodestyle` config to `setup.cfg`
* add `make pycodestyle`
* add `make coveralls`
* etc.
2018-07-12 21:16:16 +02:00
Jakub Roztocil
a50660cc70
Test --timeout with longer delay
...
test_timeout_exit_status fails on Python 2.7
https://travis-ci.org/jakubroztocil/httpie/jobs/390072675#L325
2018-07-12 00:39:31 +02:00
Jakub Roztocil
749b1e2aca
Fix pytest configuration
2018-06-09 11:59:34 +02:00
Jakub Roztocil
0f4dce98c7
Make default HTTP headers case-insensitive
...
Cloase #644
2018-02-22 12:52:57 +01:00
Jakub Roztocil
11be041e06
Rename TestEnvironment
to MockEnvironment
to avoid pytest warnings
...
Close #621
2017-12-28 18:17:48 +01:00
Jakub Roztocil
ec899d70b7
Removed Python 2.6 support
...
* Travis CI doesn't support it anymore.
* It had EOL more than 4 years ago
2017-12-28 18:03:37 +01:00
darshanime
6472ca55e1
fix env version attribute
2017-11-18 19:01:26 +05:30
Pablo Santiago Blum de Aguiar
9776a6dea0
Support requests>=2.14.0
...
From that release onwards, `cert_verify` raises `IOError` [1].
1: https://github.com/kennethreitz/requests/commit/7d8b87c
2017-05-17 20:31:10 -03:00
Jakub Roztocil
c948f98b05
Update links
2017-03-10 11:27:38 +01:00
Jakub Roztocil
7321b9fa4e
Add --verify true/false tests and CHANGELOG
2017-02-17 00:56:07 +01:00
Jakub Roztocil
2efc0db8d4
Cleanup
2016-11-24 00:58:41 +01:00
Jakub Roztocil
0b84180485
Fix Python 2.6
2016-11-23 23:20:52 +01:00
Jakub Roztocil
5a1bd4ba83
Cleanup
2016-11-23 23:15:18 +01:00
Jakub Roztocil
3f7ed35238
Add more plugin API tests
2016-11-23 23:09:45 +01:00
Jakub Roztocil
54a63a810e
Cleanup/docstring
2016-11-23 22:29:36 +01:00
Jakub Roztocil
a49774d3ab
Extend auth plugin API
...
This extends the `AuthPlugin` API by the following attributes:
* `auth_require`: set to `False` to make `--auth, -a` optional
* `auth_parse`: set to `False` to disable `username:password` parsing
(access the raw value passed to `-a` via `self.raw_auth`).
* `prompt_password`: set to`False` to disable password prompt when
no password provided (only relevant when `auth_parse == True`)
These changes should be 100% backwards-compatible.
What needs more testing is auth support in sessions.
Close #433
Close #431
Close #378
Ping teracyhq/httpie-jwt-auth#3
2016-11-23 22:02:12 +01:00
Jakub Roztocil
b879d38b07
Test case for Host
header removal (unimplemented feature)
2016-11-23 22:02:12 +01:00
Jakub Roztocil
6267f21f21
Clean-up
2016-10-26 11:58:47 +02:00
Jakub Roztocil
9b23a4ac9a
Exit with status 130 on CTRL-C
...
http://www.tldp.org/LDP/abs/html/exitcodes.html
#531
2016-10-26 11:53:01 +02:00
Jakub Roztocil
b96eba336d
Fixed test
2016-10-26 11:28:17 +02:00
Jakub Roztocil
48a6d234cb
Need a main()
...
#531
2016-10-26 11:21:30 +02:00
Pedro Rodrigues
8f6bee9196
codestyle fixes
2016-07-19 17:23:40 +01:00
Jakub Roztocil
49a0fb6e0f
More liberal default JSON Accept header
...
Closes #470
2016-07-02 14:18:36 +02:00
Jakub Roztocil
1124d68946
Added --default-scheme <URL_SCHEME>
...
Closes #289
2016-07-02 12:47:02 +02:00
Jakub Roztocil
c8e06b55e1
Fix tests
2016-07-02 12:03:19 +02:00
Jakub Roztocil
5acbc904b7
Added the ability to unset headers
...
Closes #476
2016-07-02 11:50:30 +02:00
Jakub Roztocil
098257c0be
Rename --print-others to --history-print.
2016-07-01 18:49:27 +02:00
Jakub Roztocil
5300b0b490
Fixed #451 - OSError: [Errno 36] File name too long
2016-03-17 15:58:01 +08:00
Jakub Roztocil
35a99fe04b
Added test for -F shortcut
2016-03-09 21:58:34 +08:00
Jakub Roztocil
76e15b227c
Added test_verbose_implies_all
2016-03-09 21:58:11 +08:00
Jakub Roztocil
25d1e8e418
Add Accept-Encoding: identity
for --download
...
#423
2016-03-07 11:46:59 +08:00
Jakub Roztocil
6e1dbadff9
Replace --show-redirects with --all and add --print-others, -P
...
With --all, any intermediary requests/responses are shown (such as redirects
or the initial unauthorized Digest auth request).
The --print-others, -P option works like --print, -p, but only applies to
intermediary requests/responses. The default behaviour is to inherit
the value of -p.
2016-03-07 07:04:23 +08:00
Jakub Roztocil
a6ebc44a48
Run tests against both HTTP and HTTPS
...
Some of the tests now use the `httpbin_both` fixture from pytest-httpbin.
Also, made httpbin's CA trusted by default and added `httpbin_secure_untrusted`
fixture to allow overriding that for particular tests.
2016-03-06 17:42:35 +08:00
Jakub Roztocil
bb49a1f979
Improved --debug output
2016-03-05 01:42:48 +08:00
Jakub Roztocil
4e574e6b8e
Cleanup tests
2016-03-03 18:50:18 +08:00
Jakub Roztocil
5bdf4a3bae
Fixed test_rst_file_syntax error message
2016-03-03 17:22:12 +08:00
Jakub Roztocil
20823c1702
Removed the "implicit_content_type" config option
...
If you used:
"implicit_content_type": "form"
You can achieve the the same result with:
"default_options": ["--form"]
If you used:
"implicit_content_type": "json"
Then it's the default behaviour and it can be removed.
In either case HTTPie will migrate your config file on the next invocation.
2016-03-03 17:14:39 +08:00
Jakub Roztocil
5dbd104c3b
Nobody ain't got time for that
2016-03-03 17:09:34 +08:00
Jakub Roztocil
d24f30d0af
Cleanup
2016-03-02 13:31:23 +08:00
Jakub Roztocil
66e168b2af
Improved failed test output
2016-03-02 13:16:41 +08:00
Jakub Roztocil
dc4da527db
Added --ssl=<PROTOCOL_VERSION>
...
Closes #98
2016-03-02 12:12:05 +08:00
Jakub Roztocil
38e8ef14ec
Run positive tests first
...
Trying to debug failing SSL tests on Travis - kevin1024/pytest-httpbin#32
2016-03-02 10:35:40 +08:00
Jakub Roztocil
f6824f7ade
Cleanup
2016-03-02 02:53:23 +08:00
Jakub Roztocil
7fd46e0b0d
Cleanup
2016-03-02 01:02:11 +08:00
Jakub Roztocil
d4067fcb6d
Added a short timeout for test requests
2016-03-02 00:31:00 +08:00
Jakub Roztocil
56afd1adb9
Test suite cleanup
2016-03-01 23:22:50 +08:00
Jakub Roztocil
5e87a2d7e5
Cleanup
2016-03-01 23:13:45 +08:00
Jakub Roztocil
d30e28c2c7
Test suite improvements
2016-03-01 23:11:06 +08:00
Jakub Roztocil
2a25d71aa4
Refactored main() into program() + main()
2016-03-01 21:10:54 +08:00
Jakub Roztocil
01ca7f0eb2
Ignore redirected stdout with --output, -o
...
This makes it easier to use HTTPie in cron jobs and scripts.
Closes #259
2016-03-01 20:24:50 +08:00