MCPcopy
hub / github.com/httpie/cli / test_response_mime_overwrite_incorrect

Function test_response_mime_overwrite_incorrect

tests/test_output.py:622–631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

620
621@responses.activate
622def test_response_mime_overwrite_incorrect():
623 responses.add(
624 method=responses.GET,
625 url=DUMMY_URL,
626 body=XML_DATA_RAW,
627 content_type='text/xml',
628 )
629 # The provided Content-Type is simply ignored, and so no formatting is done.
630 r = http('--response-mime=incorrect/type', DUMMY_URL)
631 assert XML_DATA_RAW in r

Callers

nothing calls this directly

Calls 2

httpFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected