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

Function test_session_header_layout_preservation

tests/test_sessions.py:775–781  ·  view source on GitHub ↗
(basic_session, mock_env, layout_type)

Source from the content-addressed store, hash-verified

773 dict, list
774])
775def test_session_header_layout_preservation(basic_session, mock_env, layout_type):
776 with open_session(basic_session, mock_env) as session:
777 session['headers'] = layout_type()
778 session._headers.add('Foo', 'Bar')
779
780 with open_session(basic_session, mock_env, read_only=True) as session:
781 assert isinstance(session['headers'], layout_type)
782
783
784@pytest.mark.parametrize('layout_type', [

Callers

nothing calls this directly

Calls 2

open_sessionFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected