summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Roztocil <jakub@roztocil.co>2021-02-06 13:21:21 +0100
committerJakub Roztocil <jakub@roztocil.co>2021-02-06 13:21:21 +0100
commit61dbadb73088d796d71ba6fbf8f9e125e452e386 (patch)
treee3dfac330ecf22076ad7335aa5c9978ca709e733
parent7be25d07513f38650865c896347f2fa6e2283eba (diff)
Tests
-rw-r--r--tests/test_tokens.py7
1 files 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)