mirror of
https://github.com/httpie/cli.git
synced 2025-08-15 13:12:37 +02:00
Modernize the code base with f-strings in tests (#1069)
Simple concatenations were kept for readability purpose.
This commit is contained in:
committed by
GitHub
parent
0ff0874fa3
commit
264d45cdf5
@ -15,7 +15,7 @@ def test_assert_output_matches_headers_unterminated():
|
||||
assert_output_does_not_match(
|
||||
(
|
||||
f'HTTP/1.1{CRLF}'
|
||||
f'AAA:BBB'
|
||||
'AAA:BBB'
|
||||
f'{CRLF}'
|
||||
),
|
||||
[Expect.RESPONSE_HEADERS],
|
||||
@ -90,7 +90,7 @@ def test_assert_output_matches_headers_and_body():
|
||||
f'HTTP/1.1{CRLF}'
|
||||
f'AAA:BBB{CRLF}'
|
||||
f'{CRLF}'
|
||||
f'CCC'
|
||||
'CCC'
|
||||
),
|
||||
[Expect.RESPONSE_HEADERS, Expect.BODY]
|
||||
)
|
||||
@ -121,7 +121,7 @@ def test_assert_output_matches_multiple_messages():
|
||||
f'EEE:FFF{CRLF}'
|
||||
f'{CRLF}'
|
||||
|
||||
f'GGG'
|
||||
'GGG'
|
||||
f'{MESSAGE_SEPARATOR}'
|
||||
), [
|
||||
Expect.REQUEST_HEADERS,
|
||||
|
Reference in New Issue
Block a user