mirror of
https://github.com/httpie/cli.git
synced 2025-06-30 22:30:46 +02:00
Strip out extra variables from the actual mime type (#1244)
* Strip out extra variables from the actual mime type * mention in changelog * Update CHANGELOG.md Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
This commit is contained in:
@ -215,6 +215,18 @@ class TestColors:
|
||||
assert get_lexer('xxx/yyy') is None
|
||||
|
||||
|
||||
@pytest.mark.parametrize("endpoint", [
|
||||
"/encoding/utf8",
|
||||
"/html",
|
||||
"/json",
|
||||
"/xml",
|
||||
])
|
||||
def test_ensure_contents_colored(httpbin, endpoint):
|
||||
env = MockEnvironment(colors=256)
|
||||
r = http('--body', 'GET', httpbin + endpoint, env=env)
|
||||
assert COLOR in r
|
||||
|
||||
|
||||
class TestPrettyOptions:
|
||||
"""Test the --pretty handling."""
|
||||
|
||||
|
Reference in New Issue
Block a user