From 61dbadb73088d796d71ba6fbf8f9e125e452e386 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sat, 6 Feb 2021 13:21:21 +0100 Subject: [PATCH] Tests --- tests/test_tokens.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_tokens.py b/tests/test_tokens.py index 65e72481..8a0c7995 100644 --- a/tests/test_tokens.py +++ b/tests/test_tokens.py @@ -79,7 +79,7 @@ def test_terminal_request_headers_response_headers(httpbin): def test_raw_request_headers_response_headers(httpbin): - r = http('--print=Hh', httpbin + '/get') + r = http('--print=Hh', httpbin + '/get', env=MockEnvironment(stdout_isatty=False)) assert_output_matches(r, [Expect.REQUEST_HEADERS, Expect.RESPONSE_HEADERS]) @@ -97,10 +97,7 @@ def test_raw_headers_and_body(): def test_raw_body(): - r = http( - '--print=B', '--offline', 'pie.dev', 'AAA=BBB', - env=MockEnvironment(stdout_isatty=False), - ) + r = http('--print=B', '--offline', 'pie.dev', 'AAA=BBB', env=MockEnvironment(stdout_isatty=False)) assert_output_matches(r, RAW_BODY)