mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +03:00
pytest: give parameterised tests better ids for read- and parsability
Closes #17340
This commit is contained in:
parent
f5b7eb27f0
commit
0c749d8177
5 changed files with 53 additions and 48 deletions
|
|
@ -261,11 +261,11 @@ class TestBasic:
|
|||
|
||||
# http: special handling of TE request header
|
||||
@pytest.mark.parametrize("te_in, te_out", [
|
||||
['trailers', 'trailers'],
|
||||
['chunked', None],
|
||||
['gzip, trailers', 'trailers'],
|
||||
['gzip ;q=0.2;x="y,x", trailers', 'trailers'],
|
||||
['gzip ;x="trailers", chunks', None],
|
||||
pytest.param('trailers', 'trailers', id='trailers'),
|
||||
pytest.param('chunked', None, id='chunked'),
|
||||
pytest.param('gzip, trailers', 'trailers', id='gzip+trailers'),
|
||||
pytest.param('gzip ;q=0.2;x="y,x", trailers', 'trailers', id='gzip+q+x+trailers'),
|
||||
pytest.param('gzip ;x="trailers", chunks', None, id='gzip+x+chunks'),
|
||||
])
|
||||
def test_01_17_TE(self, env: Env, httpd, te_in, te_out):
|
||||
proto = 'h2'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue