(basic_session, httpbin, mock_env)
| 757 | |
| 758 | |
| 759 | def 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', [ |
nothing calls this directly
no test coverage detected