Jakub Roztocil
76e15b227c
Added test_verbose_implies_all
2016-03-09 21:58:11 +08:00
Jakub Roztocil
4e574e6b8e
Cleanup tests
2016-03-03 18:50:18 +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
Jakub Roztocil
74e4d0b678
Added JSON detection when `--json, -j
` is set
...
To correctly format JSON responses even when an incorrect ``Content-Type`` is returned.
Closes #92
Closes #349
Closes #368
2016-03-01 14:57:15 +08:00
Jakub Roztocil
0f8d04b4df
More robust mime type parsing
...
Closes #344
2016-02-28 20:12:16 +08:00
Jakub Roztocil
2b51cb6687
Updated links II.
2015-07-03 18:55:45 +02:00
Jakub Roztocil
a5a83c5b77
Prevent a circular import issue.
2015-02-07 16:29:17 +01:00
Dennis Brakhane
f1cd289d51
Fallback to JSON highlighting if subtype contains json
...
Some JSON based formats like JSON Home Documents[1] don't
use a '+json' suffix, but simply contain json in their
MIME type. Also, some servers might use (outdated)
types like 'application/x-json'.
The JSON formatter can already handle those cases,
but the highlighter was ignoring them.
This commit will let the highlighter choose the JSON
lexer if no other lexer could be found and the MIME subtype
contains 'json'
[1] http://tools.ietf.org/html/draft-nottingham-json-home-03
2014-09-25 00:10:06 +02:00
Jakub Roztocil
2a72ae23d5
Run tests against local httpbin instance via pytest-httpbin.
2014-06-28 16:38:41 +02:00
Jakub Roztocil
e4c68063b9
Converted built-in formatters to formatter plugins.
...
Still work in progress and the API should be considered private for now.
2014-05-12 19:12:39 +02:00
Jakub Roztocil
d9eca19b8f
New URL.
2014-05-05 21:17:23 +02:00
Jakub Roztocil
29a564ef56
Added wheel support
...
Should make installation via pip work on OSX Mavericks (#148 ).
Also added a nifty Makefile.
2014-04-28 13:25:47 +02: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
faec00fd99
Improve support for 'type/subtype+suffix' mime types in the colors output formatter.
...
E.g.:
* application/ld+json
* application/hal+json
Closes #189 , #206
2014-04-28 10:08:03 +02:00
Jakub Roztocil
76ab8b84be
Cleanup
2014-04-28 10:01:56 +02:00
Jakub Roztocil
27faf06327
Removed last dependencies on unittest. All tests are pytest-only.
2014-04-25 11:39:59 +02:00
Jakub Roztocil
f02169ea71
Added Python 2.6 compatible OrderedDict
...
To preserver ordr of headers, parameters, etc.
2014-04-24 19:57:19 +02:00
Jakub Roztocil
887f70f595
Added CONTRIBUTING.rst.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
3d079942f4
Finished pytest migration.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
3cb124bba7
Cleanup
...
XX
2014-04-24 19:32:50 +02:00
Jakub Roztocil
b880e996d0
Converted all unittest asserts to plain, pytest-powered asserts.
2014-04-24 14:58:15 +02:00
Jakub Roztocil
6071fff4af
Refactored tests into smaller modules.
2014-04-24 14:07:31 +02:00