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

Function test_outdated_layout_mixed

tests/test_sessions.py:744–756  ·  view source on GitHub ↗
(basic_session, mock_env)

Source from the content-addressed store, hash-verified

742
743
744def test_outdated_layout_mixed(basic_session, mock_env):
745 with open_raw_session(basic_session) as raw_session:
746 raw_session['headers'] = {'Foo': 'Bar'}
747 raw_session['cookies'] = {
748 'cookie': {
749 'value': 'value'
750 }
751 }
752
753 with open_session(basic_session, mock_env, read_only=True):
754 stderr = read_stderr(mock_env)
755 # We should only see 1 warning.
756 assert stderr.count(b'Outdated layout') == 1
757
758
759def test_old_session_header_layout_loading(basic_session, httpbin, mock_env):

Callers

nothing calls this directly

Calls 3

open_raw_sessionFunction · 0.85
open_sessionFunction · 0.85
read_stderrFunction · 0.85

Tested by

no test coverage detected