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

Function test_old_session_header_layout_loading

tests/test_sessions.py:759–769  ·  view source on GitHub ↗
(basic_session, httpbin, mock_env)

Source from the content-addressed store, hash-verified

757
758
759def test_old_session_header_layout_loading(basic_session, httpbin, mock_env):
760 with open_session(basic_session, mock_env) as session:
761 # Use the old layout & set a header
762 session['headers'] = {}
763 session._headers.add('Foo', 'Bar')
764
765 response = http(
766 '--session', str(basic_session),
767 httpbin + '/get'
768 )
769 assert response.json['headers']['Foo'] == 'Bar'
770
771
772@pytest.mark.parametrize('layout_type', [

Callers

nothing calls this directly

Calls 3

open_sessionFunction · 0.85
httpFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected