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

Function test_xml_format_options

tests/test_xml.py:22–31  ·  view source on GitHub ↗
(options, expected_xml)

Source from the content-addressed store, hash-verified

20)
21@responses.activate
22def test_xml_format_options(options, expected_xml):
23 responses.add(
24 responses.GET,
25 DUMMY_URL,
26 body=XML_DATA_RAW,
27 content_type='application/xml',
28 )
29
30 r = http('--format-options', options, DUMMY_URL)
31 assert expected_xml in r
32
33
34@pytest.mark.parametrize('file', XML_FILES_VALID)

Callers

nothing calls this directly

Calls 2

httpFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected