1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00
httpie-cli/tests
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
..
fixtures Avoid “__init__.py” files in test directories. 2014-04-28 11:29:41 +02:00
fixtures.py Avoid “__init__.py” files in test directories. 2014-04-28 11:29:41 +02:00
README.rst New URL. 2014-05-05 21:17:23 +02:00
test_auth.py Handle empty passwords in URL credentials 2014-07-18 13:39:47 +02:00
test_binary.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_cli.py '\' only escapes separator characters in req-items 2014-09-05 18:36:23 +02:00
test_defaults.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_docs.py Avoid “__init__.py” files in test directories. 2014-04-28 11:29:41 +02:00
test_downloads.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_exit_status.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_httpie.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_output.py Fallback to JSON highlighting if subtype contains json 2014-09-25 00:10:06 +02:00
test_regressions.py Fixed --output=/dev/null on Linux 2014-09-07 10:22:21 +02:00
test_sessions.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_stream.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_unicode.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_uploads.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
test_windows.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00
utils.py Run tests against local httpbin instance via pytest-httpbin. 2014-06-28 16:38:41 +02:00

HTTPie Test Suite
=================


Please see `CONTRIBUTING`_.


.. _CONTRIBUTING: https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst